Class Dynamic

(builtin) class Dynamic {  }

The Dynamic class allows defering type checking until runtime. Creation of Dynamic is done through Dynamic(<value>). Extraction of values is done through a cast: .@(type). The result of a cast is Option[<type>], with Some on success and None on failure. Finally, casts are not allowed to hold polymorphic types, such as List or Hash or Function, because Lily's vm only holds class information at runtime.


define <new>(value: A): Dynamic constructor