--- Comment #6 from 2010-12-21 00:52:48 PST ---
(In reply to comment #5)
> Isn't the problem rather that the type of f2 is Scoped!Foo, while the type of
> f1 is just Foo?  The compiler doesn't know that it should call the destructor
> of a Foo at the end of the scope.

You are probably right. Then why isn't this a compile error?

Foo f1 = scoped!Foo();

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to