Re: [Vala] Another problem since Vala 0.13.2 - Methods sending blocks to be filled
- From: Luca Bruno <lethalman88 gmail com>
- To: Jan-Jaap van der Geer <jjvdgeer inbox com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Another problem since Vala 0.13.2 - Methods sending blocks to be filled
- Date: Thu, 20 Oct 2011 11:35:40 +0200
On Wed, Oct 19, 2011 at 10:12 PM, Jan-Jaap van der Geer
<jjvdgeer inbox com>wrote:
I could get this to work by changing the vapi to:
public static void GetInfo (Foo* block);
and calling it by:
GetInfo(&foo);
but:
a) this means lots of changes in my code
b) it seems a step backwards to start using pointers where this
previously was not needed.
Is there a better way?
Using GetInfo(foo) shouldn't have been allowed before. So the bug is that
the compiler doesn't error out when passing a struct to a pointer. You must
use &foo, that's the right way.
--
www.debian.org - The Universal Operating System
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]