Re: [Vala] Struct bug?



On Thu, Jul 07, 2011 at 11:38:30AM +0800, Nor Jaidi Tuah wrote:
From the tutorial, 

"Structs are stack/inline allocated and copied on assignment."

So, it surprises me to find that structs are passed
by reference rather than copying. Have I found a bug
or is this really by design?

Should be fixed in master: the struct is copied before passed by reference.

-- 
http://www.debian.org - The Universal Operating System



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]