Const template
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Sun Jan 21 04:10:38 PST 2007
Andrei Alexandrescu (See Website for Email) wrote:
>
> The problem is that D does not have a clear stance on what a storage
> class is, and how it is to be manipulated statically. It is unclear
> whether storage is part of the type or a separate attribute of an
> expression. If this is not solved, it will inflict unbounded amounts of
> pain onto template code. Wiring more storage classes (such as 'lazy'
> which I realized Wednesday was a bad idea as it murks things even more
> and is thoroughly ill-designed because it is a storage class that
> actually changes the syntax of the object use -- someday Walter should
> stand the pressure and stop adding features just because people say they
> seem cool) into the language is not going to help any. Heck that was a
> long sentence :o).
>
>
> Andrei
>
What's wrong with 'lazy'? 'lazy' is not a storage class. Its behavior
only seems strange if you think of it as a storage class (i.e., some
that does not fundamentally change the underlying type).
--
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d
mailing list