I added support for type literals using the syntax ".type":
Int.type Str.type
Note that unless the left hand side is a known type name, then ".type" means call the virtual instance method sys::Obj.type():
x.type x.type()
The compiler will output type literals using the LoadType opcode.
Login or Signup to reply.
brian Sat 28 Jan 2006
I added support for type literals using the syntax ".type":
Note that unless the left hand side is a known type name, then ".type" means call the virtual instance method sys::Obj.type():
The compiler will output type literals using the LoadType opcode.