Eliminate "new" for class object creation?
Leandro Lucarella
llucax at gmail.com
Tue Oct 20 08:35:19 PDT 2009
Andrei Alexandrescu, el 20 de octubre a las 08:42 me escribiste:
> >Why not Scoped!T ? I think the purpose for this that the lifetime of the
> >object is bounded to the scope, right? I think is hard to figure that out
> >from InSitu!T than Scoped!T.
> >
> ></useless discussion>
>
> It's not a useless discussions, names are important. Scoped is more
OK, let's continue then... ;)
> evocative for in-function definition, whereas InPlace/InSitu are (at
> least to me) more evocative when inside a class.
>
> class A {
> InPlace!B member;
> }
Yes, but I think Scoped!T is clearer in average. The member effectively
live in the same scope the class does.
--
Leandro Lucarella (AKA luca) http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Si pudiera acercarme un poco más, hacia vos
Te diría que me tiemblan los dos pies, cuando me mirás
Si supieras todo lo que me costó, llegar
Hoy sabrías que me cuesta respirar, cuando me mirás
More information about the Digitalmars-d
mailing list