#115 Allow message term assignments on USE ARG

v3.2.0
closed
David Ashley
5
2012-08-14
2007-02-21
Rick McGuire
No

The USE ARG instruction is essentially a glorified assignment instruction. However, it only supports assignment to regular variables. To make an assignment using the message term syntax, you need to use a temporary variable or revert to using the arg() instruction.

use arg self~attribute

doesn't work. You need to do either

use arg temp
self~attribute = temp

or

self~attribute = arg(1)

NOTE: The one difference here will need to be the behavior for omitted arguments. With a variable case, the variable is dropped. That concept doesn't exist for the message terms. Note that the two cases above have different behaviors for omitted args. The temp variable case assigns the attribute to TEMP, while the arg() BIF case assigns it to "". I suspect the ARG() case is probably the desired effect.

Discussion

  • Rick McGuire
    Rick McGuire
    2007-04-05

    Logged In: YES
    user_id=1125291
    Originator: YES

    This requires some updates to the docs also.

     


Anonymous


Cancel   Add attachments