You can return the objects thanks to move semantics.

Keean.
On 5 Aug 2015 11:54 pm, "Raoul Duke" <[email protected]> wrote:

> > Keeping it brief you use RAII for file handles too, and they get closed
> on
> > exceptions due to stack unwinding.
> > So you would still use RAII for exception safe handling of non-memory
> > resources like file handles, even if you had GC for memory.
>
> But that presumably doesn't help with a long-lived resources, that
> live beyond / goe outside / get handed off to something else outside
> the current stack.
> _______________________________________________
> bitc-dev mailing list
> [email protected]
> http://www.coyotos.org/mailman/listinfo/bitc-dev
>
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to