Menu

#223 Syntax diagram for Object setMethod is wrong.

5.0.0
closed
Erich
None
1
2023-01-01
2014-09-22
No

The syntax diagram for the Object setMethod() method shows that the possibilities for the third argument are "FLOAT" and scope. This should be "FLOAT" and "OBJECT".

Additionally, the description should indicate that "FLOAT" is the default and the description of OBJECT scopy is essentially worthless. That really needs to be redone to indicate what class gets used for the scope.

Discussion

  • Erich

    Erich - 2015-05-08
    • status: open --> accepted
    • assigned_to: Erich
    • Group: None --> 5.0.0
     
  • Erich

    Erich - 2015-05-08

    The syntax diagram has been corrected to:

    'setMethod(' ( methodname |
                   methodname ',' method ( | ',' '"FLOAT"' | ',' '"OBJECT"' ) ) ')'
    

    The description now shows "FLOAT" as the default scope.
    Can you give a suggestion how the text for scope "OBJECT" should be changed?

    The third parameter is optional, and describes if the method that is attached to an object should have object or float scope. "FLOAT" scope, which is the default, means that it shares the same scope with methods that were defined outside of a class. "OBJECT" scope means it shares the scope with other, potentially statically defined, methods of the object it is attached to.

     
  • Erich

    Erich - 2016-08-07
    • status: accepted --> pending
     
  • Rony G. Flatscher

    • Status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel