Generic Class Alias Syntax

BCS none at anon.com
Fri Jun 5 00:16:38 PDT 2009


Hello Robert,

> eris wrote:
> 
>> 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
>> 
> And then you come across Lisp, and see a glimmer of hope. An hour
> after that, you decide to hang yourself.
> 

with a rope made of nested perens as it's the only thing you have handy.





More information about the Digitalmars-d mailing list