Re: Interface D with other languages

2014-03-29 Thread Ellery Newcomer

On Wednesday, 26 March 2014 at 14:52:56 UTC, Andrea Fontana wrote:


This seems to be a D - python !
https://bitbucket.org/ariovistus/pyd


a D - python even!

annotations would be a nifty enhancement, something like

@python_expose
class Foo {
@python_expose
public void bar() {
}

// no expose
public Fizz baz() {
}

}

maybe?


Interface D with other languages

2014-03-26 Thread Andrea Fontana
I know there are several tools around to import libraries from 
other languages. For example dstep or swig.


Is there any tool that we can use to export D to other language? 
Something like SWIG but d-based rather than c/c++ based. Anyone?


It would be great (for example) to @annotate 
classes/struct/method/function to export and have a 
php/python/.net library (or anything else) to use.


I guess a double step is needed: D - C interface - XXX classes.




Re: Interface D with other languages

2014-03-26 Thread Andrea Fontana

On Wednesday, 26 March 2014 at 14:45:57 UTC, Andrea Fontana wrote:
I know there are several tools around to import libraries from 
other languages. For example dstep or swig.


Is there any tool that we can use to export D to other 
language? Something like SWIG but d-based rather than c/c++ 
based. Anyone?


It would be great (for example) to @annotate 
classes/struct/method/function to export and have a 
php/python/.net library (or anything else) to use.


I guess a double step is needed: D - C interface - XXX 
classes.


This seems to be a D - python !
https://bitbucket.org/ariovistus/pyd


Re: Interface D with other languages

2014-03-26 Thread JN

On Wednesday, 26 March 2014 at 14:45:57 UTC, Andrea Fontana wrote:
I know there are several tools around to import libraries from 
other languages. For example dstep or swig.


Is there any tool that we can use to export D to other 
language? Something like SWIG but d-based rather than c/c++ 
based. Anyone?


It would be great (for example) to @annotate 
classes/struct/method/function to export and have a 
php/python/.net library (or anything else) to use.


I guess a double step is needed: D - C interface - XXX 
classes.


http://forum.dlang.org/thread/lgspgg$2i8l$1...@digitalmars.com