D to Javascript converter (a hacked up dmd)

Andrea Fontana advmail at katamail.com
Mon Feb 27 07:39:50 PST 2012


Il giorno lun, 27/02/2012 alle 16.09 +0100, Adam D. Ruppe ha scritto:

> 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(...);


Good!


> 
> 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.



About jquery: i mean what about a d function similar to  $() jquery
function for better elements handling (instead of getElementById() )


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20120227/edd00fb8/attachment.html>


More information about the Digitalmars-d-announce mailing list