Yeah... until (?) Mark implements some kind of "isA" functionality, it looks like the easiest way will be to have an extra "type" field... unfortunately...
( I'm trying to handle resources generically (images, sounds, fonts...etc), and would like to be able to ask a particular resource what Type it is. )
The null thing is also an option, although I'm not sure what kind of overhead there is in attempting to cast things wrongly?
thanks,
:o)
Brucey
( I'm trying to handle resources generically (images, sounds, fonts...etc), and would like to be able to ask a particular resource what Type it is. )
The null thing is also an option, although I'm not sure what kind of overhead there is in attempting to cast things wrongly?
thanks,
:o)
Brucey