Ellery Newcomer, el 17 de noviembre a las 17:01 me escribiste: > Bill Baxter wrote: > > On Tue, Nov 17, 2009 at 1:51 PM, KennyTM~ <[email protected]> wrote: > >> On Nov 18, 09 05:40, Ellery Newcomer wrote: > >>> Bill Baxter wrote: > >>>> However, I think for the good of humanity we can accept that one > >>>> little bizarre example of legal C syntax not doing the same thing in > >>>> D. > >>> int[] i; > >>> > >>> auto a = (i)[0]; > >>> > >>> what does this do? > >> (i) should not construct a tuple. Probably (i,). > > > > That's Python's solution and it seems to work out ok. > > > > --bb > > How do we express tuple types? Since we have tuple expression syntactic > support, we should have tuple type syntactic support. Cuz I'm going to > want stuff like > > Tuple!(int,int) [] lst;
I can live with that, you won't be writing types that often, but I could certainly appreciate a better syntax if we can find one. -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- Y Gloria Carrá, Gloria Estephan, Gloria Gaynor y Gloria Trevi. -- Peperino Pómoro
