Argumnentation against external function operator overloading is unconvincing
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 22 09:29:27 PDT 2016
On Thu, Sep 22, 2016 at 07:20:49AM -0700, Jonathan M Davis via Digitalmars-d wrote:
> On Thursday, September 22, 2016 08:51:59 Andrei Alexandrescu via Digitalmars-d
> wrote:
> > On 9/22/16 6:38 AM, pineapple wrote:
> > > The greatest offender I've found is how in phobos, arrays do not
> > > behave as ranges without importing the module defining their range
> > > operations.
> >
> > Would make sense to move those few primitives to object.d. I've been
> > thinking of that a long time ago but back then there was a vague
> > stance that object.d shouldn't contain templates. Since then that
> > has changed. -- Andrei
>
> The main problem with moving them there is auto-decoding.
[...]
Yet another nail in the coffin of autodecoding. But I digress. ;-)
--T
More information about the Digitalmars-d
mailing list