class A declared at namespace1.
namesapce namesapce1;
class A
{
public static function fun1()
{
}
}
I want to use fun1() inside class B:
namespace namesapce2;
use ???? as fun1
class B
{
public static func2()
{
fun1();
}
}
How to do that ?
#define use_static(class, name) function name(){ return class::name(func_get_args()); }
– Norseself::methodName()
. What you are wanting is a better language than php. Try Scala 3. – Yucca