Hello Donn,
2013/11/17 Donn donn.in...@gmail.com
Plus, how could I get that printf %p address (e.g 0x7fff70ffbb98) into
a string variable?
%p.printf(your_object)
btw, you don't need when dealing with instances of classes, and if your
classes inherit from GLib.Object, you can use
On 19/11/2013 10:12, Abderrahim Kitouni wrote:
%p.printf(your_object)
Ah. Big thanks!
btw, you don't need when dealing with instances of classes,
Ahhh two :D Will have a look.
your classes inherit from GLib.Object, you can use
your_object.get_type().name() (I'm writing this from memory,
Here's some code:
---
public class Obj : Object {
public string foo;
}
public void main() {
var o = new Obj();
var o1 = new Obj();
var o2 = new Obj();
stdout.printf(o %p\n, o);
stdout.printf(o1 %p\n, o1);
stdout.printf(o2 %p\n, o2);
//YAY!!!
string s =
For interest's sake, why is the output from o different to o? Which
would you use as a unique key?
The answer will be obvious if you try this:
var b = new Obj();
var b1 = b;
print (%p %p %p %p, b, b1, b, b1);
Nice day
Nor Jaidi Tuah
PRIVILEGED/CONFIDENTIAL information may be
On 19/11/2013 10:50, Nor Jaidi Tuah wrote:
The answer will be obvious if you try this:
var b = new Obj();
var b1 = b;
print (%p %p %p %p, b, b1, b, b1);
Obvious might be a little bold :)
I get these numbers:
0xffa0c0 0xffa0c0 0x7fffbbedcfe0 0x7fffbbedcfe8
I read the first two as
We are pleased to announce version 0.22.1 of Vala, a compiler for the
GObject type system.
Vala 0.22.1 is now available for download at:
http://download.gnome.org/sources/vala/0.22/
Changes since 0.22.0
* GIR parser updates.
* Bug fixes and binding updates.
Vala is a programming language
On Tue, 2013-11-19 at 11:07 +0200, Donn wrote:
On 19/11/2013 10:50, Nor Jaidi Tuah wrote:
The answer will be obvious if you try this:
var b = new Obj();
var b1 = b;
print (%p %p %p %p, b, b1, b, b1);
Obvious might be a little bold :)
I get these numbers:
0xffa0c0 0xffa0c0
I have been exploring and working with vala recently, so far I love it. It's
better than even a lot of the high level languages I've worked with. I
hope this is right place for a feature request, I couldn't find any
information on how to submit one. If people like this idea I may try to hack
it
For example, say .. is the operator, this:
var object = new Object();
object.method_one(arg);
object.method_two(arg);
object.method_three(arg);
Can be written as this:
new Object()
..method_one(arg)
..method_two(arg)
..method_three(arg);
Good idea. But
Another good example is
Nor Jaidi Tuah norjaidi.tuah@... writes:
This can be simplified to:
var window = new Window ()
..title = Hello, World!
..border_width = 10
..window_position = WindowPosition.CENTER
..set_default_size(350, 70);
... the above is troublesome.
Consider this:
On Wed, 2013-11-20 at 00:53 +, Christian Johnson wrote:
I have been exploring and working with vala recently, so far I love it. It's
better than even a lot of the high level languages I've worked with. I
hope this is right place for a feature request, I couldn't find any
information on how
On 20/11/2013 02:12, Nor Jaidi Tuah wrote:
Exactly. Told you it's obvious :-)
Ha ha! You did. Thanks for your help.
\d
___
vala-list mailing list
vala-list@gnome.org
https://mail.gnome.org/mailman/listinfo/vala-list
Am 2013-11-19 18:12, schrieb Jürg Billeter:
We are pleased to announce version 0.22.1 of Vala, a compiler for the
GObject type system.
Hm, I'd suggest to either give reasons for the reversions or just
squash them in the changelog, it looks a bit weird :)
13 matches
Mail list logo