[Vala] access static method
- From: Wolfgang Mauer <wolfgang mauer kabelmail de>
- To: Vala-list <vala-list gnome org>
- Subject: [Vala] access static method
- Date: Tue, 26 Mar 2019 16:24:57 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]