#621 Incorrect call to method message has wrong parameter method

v4.0beta
closed
nobody
5
2012-08-14
2009-04-17
oorexxpert
No

Message names error in argument 2 when it should be referring to argument 1:

Incorrect call to method. Method argument 2 must be a positive whole number; found "0x000E48B8" for:

tree_info[tree_id] = info;

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2009-04-17

    No, the tree_id variable is what is incorrect and it is the second argument.

    In the rexxref doc, chapter 1 section 14 (1.14) there is an example that shows this:

    table[i] = 5 / Same as table~"[]="(5,i) /

    The variable i is the second argument in the message instruction. The value being assigned, 5, is the first argument.

    Same in your example. The value being assigned, info, is the first argument and the tree_id variable is the second argument.

    I always get fooled by that too. <grin> But that's the way it is.

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-02-22

    Since the resolution is "Invalid" this should have been closed.

     


Anonymous

Cancel  Add attachments