In general, the hash operator (#
) allows you to indicate the will to refer,
explicitly, to a constant rather than to a value mediated by a variable.
Without this operator, ugBASIC may decide to make a temporary copy of the
value before using it. This can be inefficient. Therefore it is possible to
indicate the will to actually refer to the equivalent value.
For this reason, this operator works only if it is used with a constant value
(eg: an integer) or with the name of a constant.
= #constant
fontSize = #constantSize fontSize = #42
If you have found a problem with this keyword, if you think there is a bug or, more
simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!
open an issue
BACK TO KEYWORDS