isRef, isLazy, isOut

Walter Bright newshound1 at digitalmars.com
Sun Dec 20 11:34:08 PST 2009


Chris Nicholson-Sauls wrote:
> Walter Bright wrote:
>> Andrei Alexandrescu wrote:
>>> I asked in vain for is(var == ref), is(var == out) etc.
>>
>> That's because 'is' works with types, not symbols. It didn't fit.
> 
> is(typeof(var) == ref) ?

No, because ref is not part of the type. It's a storage class.



More information about the Digitalmars-d mailing list