Re: [Vala] Gtk.RecentFilterInfo and some interface issues.



On Wed, 15 Dec 2010, Eduardo Gurgel wrote:

Em 14-12-2010 19:44, Frederik escreveu:
On 12/14/2010 07:27 PM, Erick Pérez Castellanos wrote:
The standard property implementation above can be written shorter:
        public int foo { get; set; }



This code gives an error: "... already contains a definition for `_foo'"

       private int _foo;
       public int foo { get;    set; }

Should it happen? The compiler is exposing internal treament to the user.
Yes, when you're using automatic properties (sorry I don't actually know what you call them, but this is what they're called in C#) the compiler will define _foo for you, you don't need to do it yourself

If I understand correctly myself :)

Is there any intent to change this behaviour?



--
I'm do not work with/on/near the archlinux team.
I'm just a fan


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]