tyzio:
--------------------------------------------------------------------------------
Regarding point 2, my mistake, they are the same. Bellow correct one:
_class _create fruit {
method eat {} {
puts "yummy!"
}
}
_oo::class_ create banana {
superclass fruit
constructor {} {
my variable peeled
set peeled 0
}
method peel {} {
my variable peeled
set peeled 1
puts "skin now off"
}
}
--------------------------------------------------------------------------------
It's common to have both classes declaration in one file?
I looki for my examples and found class file, where usually is Class definition
and One class per file and some library file where class used second way.
--
<http://forum.pspad.com/read.php?6,55988,56027>
PSPad freeware editor http://www.pspad.com