On Thu, 12 Jul 2012 09:20:47 -0400, Andrei Alexandrescu <[email protected]> wrote:If we define alternative free generic functions in object.d for the four culprit methods (and have the compiler, druntime, and stdlib use them instead of the methods), those functions can check whether a given class object has overridden the old-style functions. In that case, that means we're dealing with legacy classes and proceed the old-style way. Otherwise, proceed the new way.Hm... I don't like this, it slows down a very basic function.I think if we want a solution that allows old code to work, why not what Timon suggested? Have a base class for Object (RawObject was suggested) that does not implement the opFunctions. It would still break code, but would be easy to fix (just specify your class derives from Object, not RawObject).-Steve
On Thursday, 12 July 2012 at 13:39:54 UTC, Steven Schveighoffer
wrote:
- Re: All right, all right! Interim decision regarding ... Roman D. Boiko
- Re: All right, all right! Interim decision regar... RivenTheMage
- Re: All right, all right! Interim decision r... Roman D. Boiko
- Re: All right, all right! Interim decisi... Roman D. Boiko
- Re: All right, all right! Interim de... RivenTheMage
- Re: All right, all right! Interim decisi... RivenTheMage
- Re: All right, all right! Interim decision regarding ... Jacob Carlborg
- Re: All right, all right! Interim decision regarding ... Andrei Alexandrescu
- Re: All right, all right! Interim decision regar... Daniel Kozak
- Re: All right, all right! Interim decision regar... Steven Schveighoffer
- Re: All right, all right! Interim decision r... Roman D. Boiko
- Re: All right, all right! Interim decisi... Roman D. Boiko
- Re: All right, all right! Interim decision r... Andrei Alexandrescu
- Re: All right, all right! Interim decisi... bearophile
- Re: All right, all right! Interim decisi... Roman D. Boiko
- Re: All right, all right! Interim decisi... deadalnix
- Re: All right, all right! Interim de... Andrei Alexandrescu
- Re: All right, all right! Interim decisi... Steven Schveighoffer
- Re: All right, all right! Interim de... Andrei Alexandrescu
- Re: All right, all right! Interim decision r... Jacob Carlborg
- Re: All right, all right! Interim decisi... Steven Schveighoffer
