set MyObj = { a=10; AddA=func(self,x){ send self.a+x; }; } log(MyObj::AddA(2));