Skip to content

v1.1.0

Compare
Choose a tag to compare
@sjrsjz sjrsjz released this 19 Feb 14:08
· 40 commits to master since this release

添加了简单的多态支持,修复了RAII机制的bug

新增 sizeoftypeof 关键字,增加了 ObjectType(arg) 的写法,用于创建临时变量并调用 tempObject._new_(arg) 方法

sizeof:type 在编译求值,为type的大小

sizeof:(expr) 在编译求值,为expr的类型的大小

typeof:(expr) 在编译求值,返回expr的类型的字面量(字节数组)

上述关键字可以用 [Public]"sizeof()"(arg)[Public]"typeof()"(arg) 重载,对应格式为 sizeof:(T,arg)typeof:(T,arg)

修复了文件读取的bug