D - more or less power than C++?

Walter Bright newshound at digitalmars.com
Sat Mar 4 17:08:11 PST 2006


"Kevin Bealer" <Kevin_member at pathlink.com> wrote in message 
news:dud3g6$lm3$1 at digitaldaemon.com...
> Sometimes its good to be able to get the least element, greatest element, 
> and so
> on, quicker than O(N).  PQs can do one or the other, but it's hard to do 
> lookups
> by value.  This is a low priority for most people I suspect.

Sometimes, yes. D's AA implementation, however, will work satisfactorilly 
for 98% of the cases. There's always some case that needs a special setup, 
and for that, one will need to use a custom user defined type. That's true 
of the STL as well. 





More information about the Digitalmars-d mailing list