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

Re: [Vala] private fields vs bodyless properties



Hi Jaap,

> The reason for this is that the objects are gobjects and these are
> created by a g_object_new call [1]. That function can only set
> properties. So you need to have a property if you want to pass data to
> your constructor

Thanks, yes you are absolutely right, I was not thinking outside the
vala box.

I have noticed that non-construct properties don't go through the
g_object_new argument list. Which caused some confusion; is this some
sort of optimization?

Hans



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