Re: [Vala] What is the right syntax for defining pointers or references or "aliases" in Vala ?
- From: Daniel Alonso <dani apanoia gmail com>
- To: Serge Hulne <serge hulne gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] What is the right syntax for defining pointers or references or "aliases" in Vala ?
- Date: Mon, 20 Jun 2011 17:43:34 -0300
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 <serge hulne gmail com> ha escrit:
How can it be checked ?
Serge.
---------- Forwarded message ----------
From: tecywiz121 <tecywiz121 hotmail com>
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 <serge hulne gmail com>
Cc: vala-list <vala-list gnome org>
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]