bug: method override via overload

Nick Nick_member at pathlink.com
Wed Feb 22 23:46:43 PST 2006


In article <dtg3cl$2ru6$1 at digitaldaemon.com>, pragma says...
>
>Anyway, my main problem with this behavior is that if Foo were a class, the
>code in main() would compile and behave just fine.  So why such an
>inconsistency could be tolerated, is beyond me.

Well actually it doesn't work, it behaves the same way. Try it :)

Unlike many quirks from C++, Walter opted to keep this one. I'm not really sure
either way if it is good or bad, though. Perhaps it would be good to change it
since so many people find it counter-intuitive. I guess I've just gotten used to
it from C++.

Nick





More information about the Digitalmars-d-bugs mailing list