Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DIM var ... AT @address (*solved*)
#1
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
is rejected by the compiler.
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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#2
Hmmm.
Maybe I forgot this use case? Will check it, but the compiler should allow it.
Reply
#3
OK, thanks for looking at this.
By the way, what does exitcode 255 mean?
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#4
*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)?
Reply
#5
Okay. It seems fixed now.
Download version 1.3.0s924 and tell me if it works ok now.
Reply
#6
boriel Wrote:*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)?
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!!!).
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#7
Please, confirm it is working Tongue (so I can marked this as *solved*).
There are other issues pending.
Reply
#8
boriel Wrote:Please, confirm it is working Tongue (so I can marked this as *solved*).
There are other issues pending.
Tested, confirmed! It works. Thanks.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)