Shortcut Operators

Added December 2010

A-Shell offers the following shortcut operators:

var += <expr>     ! equivalent to var = var + (<expr>)

var -= <expr>     ! equivalent to var = var - (<expr>)

var *= <expr>     ! equivalent to var = var * (<expr>)

var /= <expr>     ! equivalent to var = var / (<expr>)

These require /X:2 or /RC, but they do not have any compatibility effect on the resulting RUN module. Note that the += operator works equally well for numeric addition as well as string concatenation.

History

2010 December, A-Shell 5.1.1195:  Feature added to A-Shell (compiler edit 471)