A crazy two-part proposal

Leandro Lucarella llucax at gmail.com
Sun Oct 5 15:29:07 PDT 2008


downs, el  5 de octubre a las 23:49 me escribiste:
> It just occured to me ..
> 
> if we're rethinking template syntax anyway, we could redefine the comma operator in 2.0 to create tuples.
> 
> Then the "of" keyword could be used for templates:
> 
> "(Vector of 2, int)[] veclist; "
> 
> I don't think it gets more understandable than that :D

Now we are talking!

PS: Nice way to finally introduce tuple syntax to the language ;)

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
I can't watch TV for four minutes without thinking
I have five serious diseases.
Like: "Do you ever wake up tired in the mornings?"
Oh my god I have this, write this down. Whatever it is, I have this.



More information about the Digitalmars-d mailing list