Generic Class Alias Syntax

eris jvburnes at gmail.com
Mon Jun 8 13:44:04 PDT 2009


Robert Fraser Wrote:

> 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.

and then you see MetaLua and you say, "oooooh... pretty".

http://metalua.luaforge.net/




More information about the Digitalmars-d mailing list