Re: [Vala] access static method



Namespace static method:

Namespace.staticmethodname ()

Class method:

Namespace.class.staticmethodname ()

On Tue, Mar 26, 2019, 15:25 Wolfgang Mauer <wolfgang mauer kabelmail de>
wrote:

How can i access a static method(Methods in Namespace are static?!) from
a method inside a class that contains a method with the same name?

namespace valaDevelop
{
     public string get_text(TextBuffer buffer, bool include_hidden_chars
= true)
     {
     ...
     }

     public class abc
     {
         public void mymethod()
         {
             ----> //now i want to access the static method above not
the one inside the class
         }
public string get_text()
{
...
}

     }

}

I have already tried a few options, but it did not work
"global.get_text", "valaDevelop.get_text", "::get_text" :-(


Thanks for Help
Wolfgang




_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



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