On 06/18/2011 05:59 PM, Gavrilov Maksim wrote:
I'm proud to present list of new software included in Gentoo overlay
since last announce in January:
* Valencia
* Gtkaml
* VTG
* Val(a)IDE
* Xnoise
xnoise does not appear to be part of the overlay?
20.06.2011 16:33, Reid Thompson пишет:
xnoise does not appear to be part of the overlay?
Not any more. After this announce I received an email from Gentoo
maintainer responsible for a new xnoise ebuild in the main tree. We
decided that I should remove my version because there's no more need of
Is this the right syntax for defining pointers in Vala ?
//--
using Posix;
void main (string[] argv) {
string a = hello;
var b = a;
strcpy(*b, bye);
Posix.stdout.printf(a = %s\n, a);
Posix.stdout.printf(b = %s\n, *b);
}
//-
If not, how does one declare that a and b
On Mon, Jun 20, 2011 at 08:38:29PM +0200, Serge Hulne wrote:
Is this the right syntax for defining pointers in Vala ?
//--
using Posix;
void main (string[] argv) {
string a = hello;
var b = a;
strcpy(*b, bye);
Posix.stdout.printf(a = %s\n, a);
What is the Vala syntax to express that :
b is a alias of a (or b points to the same address that a or b is a
reference to a).
Is there a way to express this in vala or does *assignment always mean
memory allocation* in Vala.
In other terms : How do you store references to variables (or
Hello,
2011/6/20 Serge Hulne serge.hu...@gmail.com:
Is this the right syntax for defining pointers in Vala ?
I think the following is better:
using Posix;
void main (string[] argv) {
string a = hello;
string* b = a;
strcpy(b, bye);
Posix.stdout.printf(a = %s\n, a);
On Mon, 2011-06-20 at 21:39 +0200, Serge Hulne wrote:
What is the Vala syntax to express that :
b is a alias of a (or b points to the same address that a or b is a
reference to a).
Is there a way to express this in vala or does *assignment always mean
memory allocation* in Vala.
I'm not
Regarding copying delegates, it is intentional. The Vala Journal has a nice
write-up about ways to work around the problem:
http://valajournal.blogspot.com/2011/06/vala-0130-released.html
-- Jim
On Sun, Jun 19, 2011 at 9:20 PM, Nor Jaidi Tuah norjaidi.t...@ubd.edu.bnwrote:
valac version:
-- Forwarded message --
From: Serge Hulne serge.hu...@gmail.com
Date: Mon, Jun 20, 2011 at 10:02 PM
Subject: Re: [Vala] What is the right syntax for defining pointers or
references or aliases in Vala ?
To: tecywiz121 tecywiz...@hotmail.com
I am not sure. The following:
///
using
How can it be checked ?
Serge.
-- Forwarded message --
From: tecywiz121 tecywiz...@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.hu...@gmail.com
Cc:
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.hu...@gmail.com ha escrit:
How can it be checked ?
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
All right , they might behave like pointers, but they are not mere
pointers, cf:
///
using Posix;
void main (string[] argv) {
string a = hello;
string b = a;
Posix.stdout.printf(a = %p\n, a);
Posix.stdout.printf(b = %p\n, b);
}
///
Which yields:
a = 0x7fff5fbff890
b =
21.06.2011 01:26, Serge Hulne пишет:
All right , they might behave like pointers, but they are not mere
pointers, cf:
///
using Posix;
void main (string[] argv) {
string a = hello;
string b = a;
Posix.stdout.printf(a = %p\n, a);
Posix.stdout.printf(b = %p\n, b);
}
On 20 June 2011 22:26, Serge Hulne serge.hu...@gmail.com wrote:
///
using Posix;
void main (string[] argv) {
string a = hello;
string b = a;
Posix.stdout.printf(a = %p\n, a);
Posix.stdout.printf(b = %p\n, b);
This is printing the address where the pointers are, that's why you
Also remember that [t]he data type for strings is string. Vala strings are
UTF-8 encoded and immutable. [http://live.gnome.org/Vala/Tutorial#Strings]
If they are to be immutable, assigning strings must yield shallow copies.
-Original Message-
From: vala-list-boun...@gnome.org
A very useful feature of Vala is to check the generated C code, especially
if you know enough about C to check what it's doing. This way you can fix
some simple mistakes (mostly misunderstading of Vala) and even optimize your
code.
For instance, the sample you used would compile to (use the
On Mon, 2011-06-20 at 13:06 -0700, Jim Nelson wrote:
Regarding copying delegates, it is intentional. The Vala Journal has
a nice write-up about ways to work around the problem:
http://valajournal.blogspot.com/2011/06/vala-0130-released.html
This is not about copying delegates. Consider the
On Mon, 2011-06-20 at 17:37 -0700, Jim Nelson wrote:
With async, the delegate *is* copied, you just don't see it in the
Vala code. With an async method, when the thread of execution yields,
the state of the function at that point is stored (copied or ref'd) in
a context structure. When the
19 matches
Mail list logo