D to Javascript converter (a hacked up dmd)

Adam D. Ruppe destructionator at gmail.com
Sun Mar 4 18:18:45 PST 2012


On Sunday, 4 March 2012 at 00:09:11 UTC, Andrej Mitrovic wrote:
> Could export help?

Not for the global (that's handled adequately by dmd's
name mangling anyway), but I did just add export checking
as comments.

export void foo() {}

becomes

function /*export*/ mangled_foo() {}


the idea is then tools like gcfunctions will know
not to strip that function out, since it may be referenced
in another module.

It also occurs to me that .di generation may be useful here
for things like server communication. So that might be
cool.


More information about the Digitalmars-d-announce mailing list