#880 USE not mandating comma to delimit variables to assign to

v4.0.1
closed
5
2012-08-14
2010-02-10
No

The following program demonstrates that USE STRICT ARG in the routine aha1() is assigning the two arguments correctly to the two local variables ONE and TWO, although these two variables are not delimited with a comma:

a="hallo"
b=.object~new
call aha1 a, b
call aha2 a, b

::routine aha1
  use strict arg one two      /* no comma between arguments! */
  say "one:" one
  say "two:" two

::routine aha2
  use strict arg one, two
  say "one:" one
  say "two:" two

Discussion

  • Rick McGuire

    Rick McGuire - 2010-02-10

    Committed revision 5549.

    This problem has been there since at least the 3.1.2 release.

     
  • Rick McGuire

    Rick McGuire - 2010-02-23

    Committed revision 5613.

    4.0.1 merge

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-09-08

    The fix for this item was in the 4.0.1 release.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks