[Vala] Life time of args passsed to async methods



Is the following safe? Will the argument be
freed when xx returns, but async_method is still
in the background?

   void xx () {
      async_method (new SomeObject ());
   }

What about the "this" argument in the following;
is it safe?

   void xx () {
      var y = new SomeOject ();
      y.async_method ();
   }

I tried to figure out the answer to these question
from the generated C, but was lost in the tangle.

hand
Nor Jaidi Tuah





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]