x.sizeof vs typeid(x)

Sergey Gromov snake.scaly at gmail.com
Wed Feb 6 13:39:33 PST 2008


Sergey Gromov <snake.scaly at gmail.com> wrote:
> foo(double x) {...}
> property double distance() {return ...}
> 
> foo(distance);   // OK
> foo(distance()); // OK
> foo = distance;  // error

Or even forbid to use the `double()' syntax for properties, and forbid 
to overload properties with non-property functions.  In other words:

foo(distance()); // error, can't use call syntax for properties
double distance(int precision) {...} // error, can't overload a property
-- 
SnakE



More information about the Digitalmars-d mailing list