Actually, no. I do not want to have objects that are subclasses of basic types. I just want them to be casted to basic types where appropriate and possible. What you suggest is to treat basic types as classes aswell. Just think of all the cmods one would have to rewrite to support int-objects.
I know that java has this feature (called autoboxing/unboxing), although I guess that doesn't convince anybody here ;)
arne
On Mon, 18 Aug 2008, Martin B�hr wrote:
you are not looking for automatic casts, but for the possibility to create a class that is compatible with basic types:
class Int(int realint) { inherit int; }
this is not yet possible, but it has been on my wish list for along time. it should be possible to inherit basic types or at least create classes that can pretend to be basic types and may be used in any place where basic types can be used now.
greetings, martin.