The example under “Public and Private Methods” is exactly what I’m trying to do but I get an error message that the instance method was not found. The instance method does exist and I’m trying to invoke it from a class method of the same class.
I then tried the example in the book:
a = .savings~newcheckingaccount;
::method newCheckingAccount CLASS
instance = .self~new
::method makeChecking private
checking = .true
And I got message:
Error 97 running C:\Documents and Settings\John Bodoh\my documents\IMDB\testrexx.REX line 4: Object method not found
Error 97.1: Object ".SELF" does not understand message "NEW"
Which I don’t understand either.
Can someone explain or is this a bug.
Open Object Rexx Version 4.0.0
Build date: Jun 30 2009
Addressing Mode: 32