![]() |
|
DIM var ... AT @address (*solved*) - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15) +---- Thread: DIM var ... AT @address (*solved*) (/showthread.php?tid=504) |
DIM var ... AT @address (*solved*) - LCD - 2012-10-11 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 @labelI 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 - 2012-10-11 Hmmm. Maybe I forgot this use case? Will check it, but the compiler should allow it. Re: DIM var ... AT @address - LCD - 2012-10-12 OK, thanks for looking at this. By the way, what does exitcode 255 mean? Re: DIM var ... AT @address - boriel - 2012-10-24 *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 - 2012-10-25 Okay. It seems fixed now. Download version 1.3.0s924 and tell me if it works ok now. Re: DIM var ... AT @address - LCD - 2012-10-25 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 - 2012-10-25 Please, confirm it is working (so I can marked this as *solved*).There are other issues pending. Re: DIM var ... AT @address - LCD - 2012-10-25 boriel Wrote:Please, confirm it is workingTested, confirmed! It works. Thanks. |