Re: [Vala] Libgee problem
- From: Xavier Bestel <xavier bestel free fr>
- To: Jiří Zárevúcky <zarevucky jiri gmail com>
- Cc: Nicolas <c r n a wanadoo fr>, vala-list gnome org
- Subject: Re: [Vala] Libgee problem
- Date: Thu, 10 Dec 2009 12:38:51 +0100
On Wed, 2009-12-09 at 23:13 +0100, Jiří Zárevúcky wrote:
Xavier Bestel píše v St 09. 12. 2009 v 22:42 +0100:
[...]
Excuse me, but I'm a bit lost: I thought the question mark was for
nullable types. What's the link with "boxed" types ?
Thanks,
Xav
In order to make a value type nullable, you need to convert it to a
reference type. That's what you call boxing. So nullable and "boxed"
types are essentially the same (in C# anyway I think). Though I believe
Vala doesn't actually treat nullable types as reference types, because
there is no way to track reference count (someone correct me if I'm
mistaken). A nullable variable is implemented as a simple pointer here.
So that means you can't have boxed non-nullable types ?
And that means a "double" has a different behavior than a "double?" ?
Non-obvious.
Xav
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]