Named Variables in VisualAPL Operator function header

General discussions related to APLNext's VisualAPL.

Moderators: Tech Support, phpbb_admin

Named Variables in VisualAPL Operator function header

Postby joe_blaze » May 25th, 2009, 11:20 pm

When a VisualAPL function is defined using the operator (traditional APL) function signature style, named variables may be included in the function header.

The behavior, described below, of VisualAPL with respect to these named varibles is designed to be consistant and compatible with any other .Net programming language. Therefore this behavior differs from the traditional APL behavior with respect to named variables in the called function header.

In VisualAPL:
    If the calling and called functions are members of the same class, these named variables in the function header of the called function are persistant in the calling class after the function call is completed.

    If the calling and called function are members of different classes, then named variables in the function header of the called function do not exist and hence cannot persist in the calling class unless they are also defined as public properties in the called class.

    If a variable is neither named in the header of the called function or defined as a public property in the called class, then it does not exist in the calling class.

The attached documents provide additional information and a VisualAPL console project example illustrating this feature of VisualAPL.
Attachments
Variable Scoping in VisualAPL Operator Function Signatures.pdf
This .pdf-format document provides details of the VisualAPL behavior with respect to named variables in a VisualAPL operator function header.
(766.22 KiB) Downloaded 344 times
VAPL_PersistantVarsInFnHeader.zip
This .zip-format file contains a VisualAPL console project which illustrates named variables in operator function headers.
(2.33 MiB) Downloaded 334 times
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361

Return to VisualAPL

Who is online

Users browsing this forum: No registered users and 17 guests

cron