D to Javascript converter (a hacked up dmd)

Adam D. Ruppe destructionator at gmail.com
Tue Feb 28 20:11:42 PST 2012


On Wednesday, 29 February 2012 at 04:02:54 UTC, Piotr Szturmaj 
wrote:
> but this implies that all value variables must be initialized 
> with new Wrapper(x).

Yeah. I don't like that because it means you pay for something
that you aren't necessarily going to use.

Now, it could follow the variable and say, if it is going into
a ref function, wrap it up like this, but that'd be a lot harder
to work into the compiler.


It's not a bad idea, though. If it can be arranged to only
be used when needed, it would probably be better than the
lambda.


More information about the Digitalmars-d-announce mailing list