Dear statalisters,
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()
}
I can understand the concept of calling a class into another class, such as that line
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()
How can a class contain an argument ?

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 :-(