I just read this part of the manual.
Code:
class U { real matrix M private real scalar type static real scalar count class coord scalar c real matrix inverse() protected real scalar type() class coord scalar c() }
Code:
class coord scalar c
Code:
clear mata mata: class test_into_test { string scalar world void new() } void test_into_test::new() { world = "world" } end mata: class test { string scalar coucou void new() class test_into_test scalar c() } void test::new() { coucou = "hello" coucou } class c(test) { print(arg) } end mata: a = test()
But I am particularly interested in the line
Code:
class coord scalar c()
May you give me more detail about defining a class into another class as a function please ? I thought that a class cannot be defined with any argument...
Sorry if it has been explained anywhere else. I have not found any information on that :-(
0 Response to Declaring class as a function into a class. Why ?
Post a Comment