Generic Class Alias Syntax

bearophile bearophileHUGS at lycos.com
Thu Jun 4 15:10:39 PDT 2009


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.

Bye,
bearophile



More information about the Digitalmars-d mailing list