flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 06 Jun 2017, 18:14
Actually it is the other way around - any variable is by default defined in current namespace:
Code: meta = 'global' namespace ns meta = 'local' display meta,13,10 ; displays local end namespace display meta,13,10 ; displays global Code: meta = 'global' namespace ns meta. = 'redefined global' end namespace display meta,13,10 |
|||
![]() |
|
VEG 06 Jun 2017, 18:28
Hmm, I've simplified my code a little bit before sending and I've not checked it. My situation was like this:
Code: meta = 0 macro loaddata ns, filename namespace ns meta.field = 1 end namespace end macro loaddata test, "test.bin" assert test.meta.field = 1 My bad that I've simplified my code and haven't checked it. The problem would be solved if I had checked it. Sorry. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.