D to Javascript converter (a hacked up dmd)
Adam D. Ruppe
destructionator at gmail.com
Mon Feb 27 07:09:41 PST 2012
On Monday, 27 February 2012 at 09:46:51 UTC, Andrea Fontana wrote:
> Can you call custom (external, from 3rd party libs)
> JS functions from there?
Yes, just make:
extern(js) void function_name_here(...);
and you can call it. For jQuery, you'd probably want
to define an extern(js) class JQuery {} with all its method
names. Since so many of them take strings, I think this would
actually be somewhat easy.
More information about the Digitalmars-d-announce
mailing list