It seems that the 'protos' slot is empty when the 'init' method of an
object is called during a clone operation. The 'protos' slot is then
set after init is called. I wanted to add to the prototype chain
during init - is this possible at all? If not, what's an approach for
doing this?
An example:
---------------8<----------------
$ io
Io 20090105
Io> Foo := Object clone
==> Foo_0x822ca28:
type = "Foo"
Io> Bar := Object clone
==> Bar_0x8283830:
type = "Bar"
Io> Baz := Foo clone do (init := method(appendProto(Bar clone)))
==> Baz_0x81792c0:
init = method(...)
type = "Baz"
Io> Baz clone protos
==> list(Baz_0x81792c0)
---------------8<----------------
Chris
--
http://www.bluishcoder.co.nz