Re: [Vala] Vala owned array of unowned objects



Hi

On Thu, Dec 3, 2009 at 6:40 PM, aaron andersen
<aaron r andersen gmail com> wrote:
Is there a way to return an array of unowned objects without using pointers?


This returns an unowned array to owned/refcounted objects, but how to return
array to unowned objects?

unowned Object[] get_array_of_unowned_objects ();


I had similar issues recently. This is how I workaround it:

T[] get_array<T>();

get_array<unowned T>();

Thanks for any help.

good luck!

-- 
Marc-André Lureau



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