Generic Class Alias Syntax

eris jvburnes at gmail.com
Thu Jun 4 15:33:30 PDT 2009


bearophile Wrote:

> eris:
> > Is there any way to get around including the exclamation point?<
> 
> !(int) tells the template what type is T. Somewhere you have to tell it what type of items you want to put inside it.
> The alternative is like the old Java, where your collections contain references to Object, used to store wrappers (boxes) like Integer, etc, and you have to cast the items you pull out of them.
> So I don't understand what you want.

(1) Cake
(2) Eat it too

Sometimes you realize that you don't get to redefine the language syntax.

That's a bad, cold, lonely day.  :-)

bye




More information about the Digitalmars-d mailing list