Using "cast(enum)" for explicit request of ctfe

luka8088 luka8088 at owave.net
Wed Dec 4 03:54:05 PST 2013


On 4.12.2013. 12:41, monarch_dodra wrote:
> On Wednesday, 4 December 2013 at 11:32:40 UTC, Jakob Ovrum wrote:
>> On Wednesday, 4 December 2013 at 11:12:54 UTC, monarch_dodra wrote:
>>> Or, if somebody has an idea of how to do this via a library solution?
>>
>> alias eval(alias exp) = exp;
> 
> Nice :D
> 
> Very very nice. Though that should be "enum" I think.
> 
> I think having this somewhere in Phobos would be a great addition.
> 
> Not sure "eval" would be correct though, as "eval" tends to imply parsing.
> 
> I'll just file a simple ER then. Where would we put such an addition?

Eval comes from examples of http://dlang.org/function.html#interpretation



More information about the Digitalmars-d mailing list