Re: [Vala] The name `get_name' does not exist in the context of `Test.A'



On Wed, 2008-05-14 at 19:21 +0200, Geert Jordaens wrote:
Could anybody give me a hint on what's wrong with folowing code :


using GLib;

namespace Test {
  public class A : GLib.Object {

    public string   name    {  get; set; }

  }

  public class B : GLib.Object {

    public string name    {  get; set; }

    public void copy_name (A a)
      {
         a.get_name();
      }
  }

}

try a.name ?





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