Re: [Vala] Another problem since Vala 0.13.2 - Methods sending blocks to be filled



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]