Re: [Vala] using a non-glib C library in vala
- From: "Michael B. Trausch" <mbt zest trausch us>
- To: Jan Hudec <bulb ucw cz>
- Cc: vala-list gnome org
- Subject: Re: [Vala] using a non-glib C library in vala
- Date: Wed, 16 Sep 2009 15:46:34 -0400
On Wed, 2009-09-16 at 15:41 -0400, Michael B. Trausch wrote:
Did the meaning of [SimpleType] change somewhere? I thought it meant
"pass by value".
And pardon me, I'm not thinking very clearly. That sounds wrong.
My thought was that a SimpleType could be allocated statically, and
passing it would do something like (in C, continuing the example from
earlier in the thread):
ip_address_t foo;
memset(&foo, 0, sizeof(ip_address_t));
I can see writing things like this being frowned upon, but my thought
was that a SimpleType was just that. It seems instead that all
allocations are supposed to come from the heap via (one way or another)
malloc/free? Or am I still misunderstanding something?
--- Mike
--
Blog: http://mike.trausch.us/blog/
Misc. Software: http://mike.trausch.us/software/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]