x.sizeof vs typeid(x)
Christopher Wright
dhasenan at gmail.com
Fri Feb 8 06:08:27 PST 2008
Walter Bright wrote:
> 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.
typeid yields an expression, not a type.
More information about the Digitalmars-d
mailing list