www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - typeid(obj) vs obj.typeinfo

Hello All !
I've found in changelog: ".typeinfo property is now deprecated (use
TypeidExpression instead)"
What was the reason for it ? Why typeid (and typeof) is not a property ?
If there was a good reason, why is there obj.sizeof instead of sizeof(obj) ?
There is even array.sort (which is confusing for me, why this is not
library function ?).
I can't understand why typeid and typeof are the only one exception from
general rule about what is a property and what is not.

-- 
          Vladimir
Mar 31 2005