Hi, you have to use the "new" operator in order to create a new
instance of a class. Any assignment of a variable to an existing
instance is just a reference to the same instance.

Best regards.

El dilluns 20 de juny de 2011, Serge Hulne <[email protected]> ha escrit:
> How can it be checked ?
>
> Serge.
>
>
> ---------- Forwarded message ----------
> From: tecywiz121 <[email protected]>
> Date: Mon, Jun 20, 2011 at 9:55 PM
> Subject: Re: [Vala] What is the right syntax for defining pointers or
> references or "aliases" in Vala ?
> To: Serge Hulne <[email protected]>
> Cc: vala-list <[email protected]>
>
>
>
>
> I'm not an expert, but I'm pretty sure that with classes, assignment
> means setting the variable to point to the object, and increasing the
> object's reference count.
>
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to