x.sizeof vs typeid(x)

Sergey Gromov snake.scaly at gmail.com
Tue Feb 5 17:57:49 PST 2008


I wonder why .sizeof is implemented as a property while typeof() and
typeid() are functions.  I can see no reasons for such inconsistency.
It's not that obvious for typeof() because it yields a type instead
of a value, but even then, why not ?



More information about the Digitalmars-d mailing list