Thread overview | ||||||
---|---|---|---|---|---|---|
|
March 26, 2014 Interface D with other languages | ||||
---|---|---|---|---|
| ||||
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. |
March 26, 2014 Re: Interface D with other languages | ||||
---|---|---|---|---|
| ||||
Posted in reply to 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 |
March 26, 2014 Re: Interface D with other languages | ||||
---|---|---|---|---|
| ||||
Posted in reply to 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. http://forum.dlang.org/thread/lgspgg$2i8l$1@digitalmars.com |
March 29, 2014 Re: Interface D with other languages | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrea Fontana | 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?
|
Copyright © 1999-2021 by the D Language Foundation