bigfloat
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Apr 8 15:37:07 PDT 2009
dsimcha wrote:
> == Quote from Frits van Bommel (fvbommel at REMwOVExCAPSs.nl)'s article
>> Steven Schveighoffer wrote:
>
>> Yet another reason to get rid of built-in .sort; a templated function would have
>> no problem with this :).
>
> Yes, and with my proposal (not exclusively mine, it's been suggested by plenty of
> other people) of importing some very basic, universally used functionality
> automatically in Object so it can "feel" builtin, getting rid of builtin sort
> wouldn't even make code *look* any different.
Great point. My hope is that one day I'll manage to convince Walter and
Sean to simply replace V[K] types with AssocArray!(K, V) and then make
AssocArray a regular template inside object.d. The current
implementation of associative arrays looks... brutal.
Andrei
More information about the Digitalmars-d
mailing list