#166 Erroneous example send-function ooRexx Reference

Next_Release
closed
Mark Miesfeld
Reference (110)
5
2012-08-14
2009-10-22
Johannes Paul
No

Open Object Rexx™ Reference (“rexxref.pdf”), Version 4.0.0 Edition, August 14, 2009
Error in example illustrating send-method on page 118 of the ooRexx Reference.

world=.WorldObject~new
// the following 3 calls are equivalent
msg1=world~hello("Fred")
msg2=world~send("HELLO", "Fred")
msg3=.message~new(world,"HELLO", "i", "Fred")~~send

say msg1~result / Produces Hello Fred 21:04:25.065000 /
/ for example /

say msg2~result / Produces Hello Fred 21:04:25.081000 /
/ for example /

say msg3~result / Produces Hello Fred 21:04:25.101000 /
/ for example /

::class 'WorldObject' public
::method hello
use arg name
return "Hello" name time('L')

Neither msg1 nor msg2 understand the message “RESULT”.
Erroneous code corrected:

say msg1 / Produces Hello Fred 21:04:25.065000 /
/ for example /

say msg2 / Produces Hello Fred 21:04:25.081000 /
/ for example /

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2012-02-08

    docs/trunk: Committed revision 7501.
    docs/branches/4.1: Committed revision 7502.

     
  • Mark Miesfeld
    Mark Miesfeld
    2012-07-16

    This item is fixed in the 4.1.0 release or an earlier release.

     


Anonymous


Cancel   Add attachments