Re: [Vala] Ownership syntax changes

2008-12-23 Thread Hans Vercammen
On Sun, 2008-12-21 at 13:25 -0500, Yu Feng wrote: On Sun, 2008-12-21 at 00:16 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 23:57 +0100, Hans Vercammen wrote: On Sat, 2008-12-20 at 08:24 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 02:19 +0100, Hans Vercammen wrote: On Fri,

Re: [Vala] Ownership syntax changes

2008-12-21 Thread Yu Feng
On Sun, 2008-12-21 at 00:16 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 23:57 +0100, Hans Vercammen wrote: On Sat, 2008-12-20 at 08:24 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 02:19 +0100, Hans Vercammen wrote: On Fri, 2008-12-19 at 12:10 +0100, Jürg Billeter wrote:

Re: [Vala] Ownership syntax changes

2008-12-21 Thread Yu Feng
On Sat, 2008-12-20 at 23:57 +0100, Hans Vercammen wrote: On Sat, 2008-12-20 at 08:24 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 02:19 +0100, Hans Vercammen wrote: On Fri, 2008-12-19 at 12:10 +0100, Jürg Billeter wrote: * `(owned)' cast replaces `#' reference transfer

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Xavier Bestel
Le vendredi 19 décembre 2008 à 12:10 +0100, Jürg Billeter a écrit : I just committed some ownership syntax changes to trunk. The old syntax will continue to be supported but is planned to be deprecated after the release of Vala 0.5.4. * `owned' type modifier replaces `#' type

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Clément DAVID
I really like a [owned] like syntax. It is clear that a [...] expression, refers to Vala code generation special meaning. [foo owns bar] string foo = bar; or like that: some_method (42, [owned] bar); 2008/12/20 Xavier Bestel xavier.bes...@free.fr: Le vendredi 19 décembre 2008 à 12:10 +0100,

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Jürg Billeter
On Sat, 2008-12-20 at 12:19 +0100, Xavier Bestel wrote: Le vendredi 19 décembre 2008 à 12:10 +0100, Jürg Billeter a écrit : I just committed some ownership syntax changes to trunk. The old syntax will continue to be supported but is planned to be deprecated after the release of Vala 0.5.4.

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Jürg Billeter
On Sat, 2008-12-20 at 09:25 +, Sam Liddicott wrote: Why not [owned] ? For the reference transfer expression or as a type modifier? As brackets are already used by attributes, [owned] would need to be an attribute to be usable as a type modifier. We currently do not support attributes in all

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Yu Feng
On Sat, 2008-12-20 at 12:19 +0100, Xavier Bestel wrote: Le vendredi 19 décembre 2008 à 12:10 +0100, Jürg Billeter a écrit : I just committed some ownership syntax changes to trunk. The old syntax will continue to be supported but is planned to be deprecated after the release of Vala 0.5.4.

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Yu Feng
On Sat, 2008-12-20 at 13:04 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 12:19 +0100, Xavier Bestel wrote: Le vendredi 19 décembre 2008 à 12:10 +0100, Jürg Billeter a écrit : I just committed some ownership syntax changes to trunk. The old syntax will continue to be supported but is

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Arto Karppinen
Yu Feng wrote: On Sat, 2008-12-20 at 13:04 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 12:19 +0100, Xavier Bestel wrote: Le vendredi 19 décembre 2008 à 12:10 +0100, Jürg Billeter a écrit : I just committed some ownership syntax changes to trunk. The old syntax will continue to be

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Hans Vercammen
On Sat, 2008-12-20 at 08:24 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 02:19 +0100, Hans Vercammen wrote: On Fri, 2008-12-19 at 12:10 +0100, Jürg Billeter wrote: * `(owned)' cast replaces `#' reference transfer expression Even less used, equally unintuitive. Example

Re: [Vala] Ownership syntax changes

2008-12-20 Thread Hans Vercammen
On Sun, 2008-12-21 at 00:16 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 23:57 +0100, Hans Vercammen wrote: On Sat, 2008-12-20 at 08:24 +0100, Jürg Billeter wrote: On Sat, 2008-12-20 at 02:19 +0100, Hans Vercammen wrote: On Fri, 2008-12-19 at 12:10 +0100, Jürg Billeter wrote:

Re: [Vala] Ownership syntax changes

2008-12-19 Thread Frederik
Jürg Billeter wrote: * `unowned' type modifier complements `weak' type modifier Are there any questions or comments to these changes? This error message should have different wording for the 'unowned' modifier: error: duplicating (...) instance, use weak variable or explicitly invoke

Re: [Vala] Ownership syntax changes

2008-12-19 Thread Jürg Billeter
On Fri, 2008-12-19 at 14:03 +0100, Frederik wrote: Jürg Billeter wrote: * `unowned' type modifier complements `weak' type modifier Are there any questions or comments to these changes? This error message should have different wording for the 'unowned' modifier: error:

Re: [Vala] Ownership syntax changes

2008-12-19 Thread Jürg Billeter
On Sat, 2008-12-20 at 02:19 +0100, Hans Vercammen wrote: On Fri, 2008-12-19 at 12:10 +0100, Jürg Billeter wrote: * `(owned)' cast replaces `#' reference transfer expression Even less used, equally unintuitive. Example of new syntax: string foo = (owned) bar; I don't have a

Re: [Vala] Ownership syntax changes

2008-12-19 Thread Jürg Billeter
On Fri, 2008-12-19 at 20:49 -0500, Jamie McCracken wrote: On Sat, 2008-12-20 at 02:19 +0100, Hans Vercammen wrote: On Fri, 2008-12-19 at 12:10 +0100, Jürg Billeter wrote: * `(owned)' cast replaces `#' reference transfer expression Even less used, equally unintuitive. Example