![]() |
DIM var ... AT @address (*solved*) - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15) +---- Thread: DIM var ... AT @address (*solved*) (/showthread.php?tid=504) |
DIM var ... AT @address (*solved*) - LCD - 10-11-2012 Hi Boriel. The Address of a label or variable is afaik a constant (@label/@variable), so I wonder why it is not possible to use it in the DIM: Code: DIM variable AS UINTEGER AT @label I understand why it would reject variables, even if this would be useful, but @labels or @variablenames should be IMHO not rejected. I just noticed the saved space when using DIMed variable to a adress and then equation label=variable over POKE UINTEGER @label,value. Used this technique in "Yumiko in the haunted Mansion" to read and write frames counter system variable. This made a lot stuff simpler. Re: DIM var ... AT @address - boriel - 10-11-2012 Hmmm. Maybe I forgot this use case? Will check it, but the compiler should allow it. Re: DIM var ... AT @address - LCD - 10-12-2012 OK, thanks for looking at this. By the way, what does exitcode 255 mean? Re: DIM var ... AT @address - boriel - 10-24-2012 *Confirmed* The "Variable Aliasing" feature is broken: <!-- m --><a class="postlink" href="http://www.boriel.com/wiki/en/index.php/ZX_BASIC:DIM#Variable_aliasing">http://www.boriel.com/wiki/en/index.php ... e_aliasing</a><!-- m --> Hmmm. Seems I introduced this error during the deep changes in previous versions. :oops: Also I got exit code 1. How do you get error 255 (the same as -1)? Re: DIM var ... AT @address - boriel - 10-24-2012 Okay. It seems fixed now. Download version 1.3.0s924 and tell me if it works ok now. Re: DIM var ... AT @address - LCD - 10-24-2012 boriel Wrote:*Confirmed* The "Variable Aliasing" feature is broken:I cannot reproduce how the Exit code -1 was done, because I saw it only once (Then I changed the code a little bit). BorIDE always displays the exit code, I just wondered. Maybe I can reproduce it later. Anyway thanks for the new Version (Downloading!!!). Re: DIM var ... AT @address - boriel - 10-25-2012 Please, confirm it is working ![]() There are other issues pending. Re: DIM var ... AT @address - LCD - 10-25-2012 boriel Wrote:Please, confirm it is workingTested, confirmed! It works. Thanks. |