Overloading methods by constness?
Paul Collier
paching at gmail.com
Wed Aug 22 00:03:26 PDT 2007
Nathan Reed wrote:
> but get a compiler error that the "bar"s conflict.
Unfortunately (AFAIK) the symbol mangler doesn't take const into account
yet, so it's impossible to overload like that until mangling is changed.
:( I suspect Walter is hesitant to completely break library
compatibility from D 1.0 to D 2.0! That's the problem with const
correctness... gotta do it all the way or not at all... ;)
More information about the Digitalmars-d-learn
mailing list