Re: [Vala] Resizable array in Vala
- From: Maciej Piechotka <uzytkownik2 gmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] Resizable array in Vala
- Date: Wed, 04 Jun 2008 13:06:44 +0200
Maciej Piechotka <uzytkownik2 gmail com> writes:
Jürg Billeter <j bitron ch> writes:
On Tue, 2008-06-03 at 23:22 +0200, Maciej Piechotka wrote:
Is it possible to create an array one can resize (similar to realloc).
It will be often accessed and rary resized but I need this fuction.
Vala supports that using the resize() method. Check the set_capacity
method in gee/arraylist.vala to see an example.
Jürg
Ok. Thanks.
One more problem - how to convert a pointer to char *?
I just need to make some pointer arithmetic...
(char *)some_pointer_array[index] do not work
Regards
PS.
I haven't tried 0.3.3 but I updated the vala from trunk today.
Ok. Now it is possible to have an array of pointers.
Regards
--
I've probably left my head... somewhere. Please wait untill I find it.
Homepage (pl_PL): http://uzytkownik.jogger.pl/
(GNU/)Linux User: #425935 (see http://counter.li.org/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]