Maybe It is best to just start with the definition of Maybe . It is a union type just like in all the examples here . It is defined like this: 复制代码> type Maybe a = ...
17.2 继承 undefined继承 17.2 继承 undefined继承 由于类也是对象(准确地说是一个原型),它们也可以从其它类(原型)获得(继承)方法。这种行为就是继承,可以很容易的在Lua中实现。现在我们有一个类(原型,其实在Lua中说类这个概念,还是很别扭的,毕竟用C++的脑袋去想,还是觉的有点奇怪的。)CA: local CA ...