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 18:11:00 -0300
Please read the Vala Tutorial, specially the section "Datatypes" where
it explains which types in vala qualify as reference types and which
ones qualify as value types.
Reference types when an assignment without the "new" operator behave
as pointers.
El dilluns 20 de juny de 2011, Daniel Alonso <dani apanoia gmail com> ha escrit:
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]