C++17 cannot beat D surely

Mike Parker via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 3 21:50:00 PDT 2017


On Sunday, 4 June 2017 at 04:47:56 UTC, Mike Parker wrote:
> On Sunday, 4 June 2017 at 04:39:21 UTC, Adam D. Ruppe wrote:

>
> I thought that assigning the result of a function call to an 
> enum would force a compile-time evaluation of the function, so 
> I would expect enum b = call(lit) to be identical to static 
> immutable b = call(lit).

Nevermind. I see where I got mixed up.





More information about the Digitalmars-d mailing list