[Vala] Proposal for a an alias (a symbol) for the keyword "unowned"
- From: Serge Hulne <serge hulne gmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] Proposal for a an alias (a symbol) for the keyword "unowned"
- Date: Thu, 23 Jun 2011 08:51:07 +0200
Since it appears that:
string a = "hello";
unowned string b = a;
and
string a = "hello";
string *b = a;
are not exactly the same.
I would like to propose basically a symbolic alias for unowned, namely:
string a = "hello";
string ^ b = a; // equivalent for: unowned string b = a;
("^" is a symbol borrowed from the Pascal language)
I think it increases readability and it is faster to type.
Serge.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]