The code below compiled i pre 0.9 versions of nimrod, but now, (using the windows installer on nimrod homepage), the compiler stops with error message 'inheritance only works with non-final objects'
What am I doing wrong? Something I missed?
#------------------------------------------
#---------------------------------------
Try this:
type
TAnimal = object of TObject
TCat = object of TAnimal
Objects which do not inherit from TObject are now by default final.
type
TAnimal {.inheritable.} = object