Virtual value types during compile-time for static type safety, static optimizations and function overloading.

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 18 06:16:25 PDT 2015


On Saturday, 18 July 2015 at 10:06:07 UTC, Tamas wrote:
> Compile & execute:
> $ dmd positive0.d; ./positive0; echo $?
> $ ldc2 positive0.d; ./positive0; echo $?

Try adding the automatic optimize flags in all your cases. For 
dmd, `-O -inline`. Not sure about ldc but I think it is `-O` as 
well.





More information about the Digitalmars-d-learn mailing list