On Tue, Dec 2, 2008 at 4:05 PM, Raul Miller <[EMAIL PROTECTED]> wrote: > Here's how I would implement CameraPhone, based on > your entry, except that a CameraPhone is a Camera and > a CameraPhone is a MobilePhone. > > coclass 'CameraPhone' > coinsert 'Camera MobilePhone' > > create=: verb define > create_Camera_ y > create_MobilePhone_ y > NB. creation details specific to a camera phone go here > ) > > destroy=: verb define > codestroy '' > )
But I got that wrong. I should have defined create this way: create=: verb define create_Camera_ f.y create_MobilePhone_ f.y NB. creation details specific to a camera phone go here ) The f. is needed so the superclass constructors get executed in the object and not in the superclass. FYI, -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
