x.sizeof vs typeid(x)

Walter Bright newshound1 at digitalmars.com
Thu Feb 7 19:16:15 PST 2008


Christopher Wright wrote:
> Walter Bright wrote:
>> Robert Fraser wrote:
>>> typeid yeilds an expression...
>>
>> The subject says typeid, the post says typeof !
>>
>> typeid(type) looks for a type between the parentheses, and a type has 
>> a different grammar than an expression.
> 
> real.nan?

Yields an expression, not a type.



More information about the Digitalmars-d mailing list