flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > "out of scope" - please, explain... |
Author |
|
Tomasz Grysztar 27 Feb 2009, 22:52
This error happens only when you try to forward-reference assembly-time variable (that is, the numerical constant that gets re-defined).
Example of valid forward referencing: Code: dd a a = 1 ; defined just once in code, ; so it's numerical constant and can be forward-referenced Example of invalid forward referencing (causing "out of scope" error): Code: dd a ; error happens here a = 1 dd a ; here "a" has value 1 a = 2 ; re-defined, thus it is numerical variable, ; and cannot be forward-referenced dd a ; here "a" has value 2 |
|||
27 Feb 2009, 22:52 |
|
IronFelix 28 Feb 2009, 10:47
Thank you very much, Tomasz. Now it is clear for me what should be done in such case.
|
|||
28 Feb 2009, 10:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.