auto, var, raii,scope, banana
Regan Heath
regan at netwin.co.nz
Mon Jul 31 19:31:13 PDT 2006
On Sat, 29 Jul 2006 22:17:07 +0100, Bruno Medeiros
<brunodomedeirosATgmail at SPAM.com> wrote:
> But most importantly:
> * You can't make auto objects out of objects allocated with a function
> (like a factory method) instead of inline allocation. For example, the
> following cannot be made with a no-allocator-keyword syntax:
> auto Foo foo = SomeFactory.newFoo(..); // can't make an auto here
> auto char[] a = read(filename); // can't make an auto here
Good point. That's a big problem.
Regan
More information about the Digitalmars-d
mailing list