The new, new phobos sneak preview

Michel Fortin michel.fortin at michelf.com
Sat Apr 11 17:33:15 PDT 2009


On 2009-04-11 19:36:36 -0400, Andrei Alexandrescu 
<SeeWebsiteForEmail at erdani.org> said:

> Frits van Bommel wrote:
>> Andrei Alexandrescu wrote:
>>> Frits van Bommel wrote:
>>>> Andrei Alexandrescu wrote:
>>>>>     alias TypeTuple!(GENERIC_READ,
>>>>>             FILE_SHARE_READ, (SECURITY_ATTRIBUTES*).init, OPEN_EXISTING,
>>>>>             FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN,
>>>>>             HANDLE.init)
>>>>>         defaults;
>>>> 
>>>> How is that a type-tuple? (As far as I can see, none of those are types...)
>>> 
>>> TypeTuple is a misnomer. A TypeTuple can contain not only types, but 
>>> also compile-time expressions.
>> 
>> I know, that's what I was pointing out :).
>> I figure, you've got commit access to Phobos...
> 
> I wonder what a good name would be.

Compile time expressions, just like in a static assert and a static if? 
StaticTuple, obviously.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list