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

luka8088 luka8088 at owave.net
Wed Dec 4 23:12:11 PST 2013


On 4.12.2013. 13:08, Jakob Ovrum wrote:
> 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).

Yeah. I guess it is a documentation (example) issue.

> 
> 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.

Oh, I didn't know that. Thanks!



More information about the Digitalmars-d mailing list