Although we don't want most types of casts, there are some cases where we will need to cast variables (ie to extract a specific overloaded function implementation, tweak tuple structure, etc)
Illegal casts should throw an exception
class Value {
...
abstract public Value toType(TypeValue type);
...
}
Issue by lucaswoj Sunday Nov 17, 2013 at 16:40 GMT Originally opened as https://github.com/manifold-lang/manifold/issues/41
Although we don't want most types of casts, there are some cases where we will need to cast variables (ie to extract a specific overloaded function implementation, tweak tuple structure, etc)
Illegal casts should throw an exception