#78 RexxRef 3.1 attribute set example

3.3.0
closed
Mark Miesfeld
Reference (110)
5
2012-08-14
2008-04-18
Jon Wolfers
No

RexxRef 3.1
The attribute set example code reads

::attribute size set
expose size / establish direct access to object variable (attribute) /
use arg value / retrieve argument /
if datatype(size, "Whole") = .false | size < 0 then
raise syntax 93.906 array ("size", value)
size=value

The wrong variable is being validated 'size' should be 'value'. I think it should read:

::attribute size set
expose size / establish direct access to object variable (attribute) /
use arg value / retrieve argument /
if datatype(value, "Whole") = .false | value < 0 then
raise syntax 93.906 array ("size", value)
size=value

thanks, Jon

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2008-04-26

    Logged In: YES
    user_id=191588
    Originator: NO

    Committed revision 2461.

    Thanks Jon.

     


Anonymous


Cancel   Add attachments