Let Go, Standard Library From Community

Lars Ivar Igesund larsivar at igesund.net
Wed Apr 18 12:12:01 PDT 2007


Dan wrote:
> 
> So if I could demonstrate that many (if not all) of these implementations
> should really be using a struct for strictly performance reasons, for
> example, would that have any weight?

Certainly, it would definately be an interesting excercise.

> 
> I find that structs tend to be able to do alot in D, with Interfaces being
> the only remaining thing I miss.

We do have some classes that we are aware would fit better as a struct, but
the lack of struct constructors prevent that for now. Similarly, lack of an
interface notion prevents some usages.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list