Error message 88.914 "Argument SCOPE must be an instance of the Class class." uses SCOPE as well as
other ooRexx documentation uses the term "scope" when referring to scope overrides.
The FORWARD instruction has the option CLASS to denote the SCOPE class object. It would be helpful
if it was allowed to use as an option name "SCOPE" to denote the override class object instead of
the option name "CLASS".
Hence "SCOPE" should be a synonym for "CLASS" (very much like the BIF CENTER() for which a synonym
CENTRE() exists).
So forward instructions could be formulated like:
::method testForwardSuper_Base
forward message "info" scope (.base)
::method testForwardSuper_Mixin1a
forward message "info" scope (.mixin1a)
::method testForwardSuper_Mixin1b
forward message "info" scope (.mixin1b)
::method testForwardSuper_Mixin2
forward message "info" scope (.mixin2)
::method testForwardSuper_NixiNoxi
forward message "info" scope (.nixinoxi)
::method testForwardSuper_no_class_01
forward message "info" scope ("nixi, noxi")
::method testForwardSuper_no_class_02
forward message "info" scope (.rexxinfo)
in addition to the current possibility:
::method testForwardSuper_Base
forward message "info" class (.base)
::method testForwardSuper_Mixin1a
forward message "info" class (.mixin1a)
::method testForwardSuper_Mixin1b
forward message "info" class (.mixin1b)
::method testForwardSuper_Mixin2
forward message "info" class (.mixin2)
::method testForwardSuper_NixiNoxi
forward message "info" class (.nixinoxi)
::method testForwardSuper_no_class_01
forward message "info" class ("nixi, noxi")
::method testForwardSuper_no_class_02
forward message "info" class (.rexxinfo)
What do you think?
---rony
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel