Please enable JavaScript to view this site.

A-Shell Development History

Compiler enhancement: The parameter type "AS" clause in function and procedure headers now allows symbols to be used in place of literal values for the sizes of the parameters. To accomplish this, leave a space between the type code and the symbolic size. For example:

Function Fn'FmtName$(first as s MAX_FIRST, last as s MAX_LAST) as s MAX_NAME

(The space after the type code is necessary since otherwise "sMAX_FIRST" would appear to be the name of a structure.)

Previously, in order to accomplish the same thing, you had to create a structure to contain the string. Otherwise, you were reduced to hard- coding the parameter sizes, thus inviting bugs when you increased the maximum size of the calling parameter but forgot to update the function.