Do everything in Java…
deadalnix via Digitalmars-d
digitalmars-d at puremagic.com
Tue Dec 9 12:26:43 PST 2014
On Tuesday, 9 December 2014 at 20:19:59 UTC, H. S. Teoh via
>> As someone (ab)using empty template "idiom", I agree, we need
>> a better
> I don't see what's the problem with making it an "empty"
> template. It
> eliminates dead code in your executable if you never call that
> it enables attribute inference, and it allows inlining. The
> only major
> incompatibility I can see is the ability to ship closed-source
> libraries, but in that case, inlining is already out of the
> anyway, so it's a non-issue.
> Or am I missing something obvious?
Considering the optimizer don't know what a template is, and do
the inlining, I'm not sure why everybody think the 2 are that
More information about the Digitalmars-d