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

Jakob Ovrum jakobovrum at gmail.com
Wed Dec 4 04:08:11 PST 2013


On Wednesday, 4 December 2013 at 11:54:08 UTC, luka8088 wrote:
> Eval comes from examples of 
> http://dlang.org/function.html#interpretation

A couple of notes:

The use of a variadic template parameter instead of an alias 
parameter is misleading because the template does not need to 
support types in the first place (and the proposed implementation 
would fail when given a type).

The name used on dlang.org is correctly using a lowercase `e`, 
according to the naming convention for templates that always 
evaluate to values/variables as opposed to types.


More information about the Digitalmars-d mailing list