Jacob Carlborg, el 5 de octubre a las 16:08 me escribiste: > >>>>2. A while ago, (I can't find the post, it may have been on reddit) you > >>>>mentioned that you were going to add property notation. Is that still > >>>>going to happen? I'm really looking forward to that, and if not, is > >>>>there a reason? > >>> > >>>There are some traces of it in the code: > >>>http://www.dsource.org/projects/dmd/changeset/195 search for "property". > >>> > >>>>-Steve > >>> > >> > >>int bar() @property > >>{ > >>return 42; > >>} > >> > >>writeln(bar); > >> > >>Yay! :) > > > >Cool :) > > > >Unfortunately, this still compiles :( > > > >int bar() > >{ > >return 42; > >} > > > >writeln("%d", bar); > > > >And this too: > > > >int bar() @property > >{ > >return 42; > >} > > > >writeln("%d", bar()); > > > >So it appears that @property is a noop for now, but is valid syntax. > > > >Also interesting from this revelation is that attributes are coming :D > > I just hope that they also will be user defined.
Ok, this is getting interesting... 8-) -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- Dentro de 30 aƱos Argentina va a ser un gran supermercado con 15 changuitos, porque esa va a ser la cantidad de gente que va a poder comprar algo. -- Sidharta Wiki