Whence came UFCS?

Jonathan M Davis newsgroup.d at jmdavisprog.com
Fri Jul 27 15:43:02 UTC 2018


On Friday, July 27, 2018 8:09:02 AM MDT Simen Kjærås via Digitalmars-d 
wrote:
> On Friday, 27 July 2018 at 13:38:26 UTC, Steven Schveighoffer
>
> wrote:
> > On 7/27/18 7:24 AM, Simen Kjærås wrote:
> >> Arrays' .reverse, .sort and others were added in 0.24, but I
> >> can't find a download for anything before 0.50.
> >
> > Reverse and sort were properties (compiler built-ins), not
> > extensions. If it existed in 2002, it's safe to say it was
> > there pretty much from the beginning.
>
>  From what I recall, UFCS for arrays were essentially a bug - an
> unintended side effect of how the properties were implemented.
> But it's been 15 years, so I can't really trust my memory. :p

I vaguely recall the whole property thing being a bug, but I don't trust my
memory on that at this point.

- Jonathan M Davis






More information about the Digitalmars-d mailing list