flat assembler
Message board for the users of flat assembler.
Index
> Programming Language Design > FASMG: suprising behavior of 'definite' operator ? |
Author |
|
fabbel 12 Feb 2024, 15:37
... actually, looking back at the manual, I see it says
Quote:
.. so that would pbly explain it... ... but still, that really feels strange nonetheless... |
|||
12 Feb 2024, 15:37 |
|
Tomasz Grysztar 12 Feb 2024, 16:31
Yes, it's a quirk of how locality is enforced without altering the existing fasmg's symbol recognition engine. The symbol needs to have a value to be "seen" by the ALM compiler, but it is given a value of type that is unusable by design (so for example TAKE command does not consider it a valid value). I was designing CALM on top of the existing rules and trying to make the best use of what I already had.
Also, be careful: once the symbol is given a symbolic value (a text from an argument, etc.), DEFINITE is going to look inside the value and check the status of a symbol with name embedded there, and not the "proxy" symbol itself. |
|||
12 Feb 2024, 16:31 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.