D to Javascript converter (a hacked up dmd)

Marco Leise Marco.Leise at gmx.de
Thu Mar 8 14:35:03 PST 2012


Am 01.03.2012, 17:29 Uhr, schrieb Robert Clipsham <robert at octarineparrot.com>:

> Interesting idea:
>
> version(JavaScript) asm
> {
>      /* Well... it's not really asm, but it's
>         as close as you could get with a javascript backend :p */
>      document.write("Oh look, inline javascript D-:");
> }
>
> Perhaps it would be better to have a dedicated function for that though.

How about:

pragma(js)
{
      document.write("Oh look, inline javascript D-:");
}


More information about the Digitalmars-d-announce mailing list