Boo构造链接

时间:2010-01-12 15:44:32

标签: syntax boo constructor-chaining

在C#中,当我想将构造函数链接在一起时,我会这样做......

public class OperationMacro : GeneratePropertyMacro {
    public OperationMacro() : base("Operation") {
        //Whatever else I need to do...
    }
}

Boo中的等效语法是什么?

1 个答案:

答案 0 :(得分:3)

找到它(很遗憾,codehaus网站有点狡猾)

class JobMacro(GeneratePropertyMacro):
    public def constructor():
        super("ThisIsTheJobName")