Re: [Vala] Vala owned array of unowned objects
- From: Marc-André Lureau <marcandre lureau gmail com>
- To: aaron andersen <aaron r andersen gmail com>
- Cc: Vala ML <vala-list gnome org>
- Subject: Re: [Vala] Vala owned array of unowned objects
- Date: Fri, 4 Dec 2009 06:43:40 +0100
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]