Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: STRING CONSTant (solved)
#1
This line:

CONST E$ TYPE STRING = "..."

Gives this error:

"Initializer expression is not constant."
Reply
#2
This is a BUG. Thanks for reporting it.
Will keep you updated.

That said, the correct syntax is:

Code:
CONST E As String = "..."
Reply
#3
Ok, here's a beta with the fix. Let me know if it works for you:

http://www.boriel.com/files/zxb/zxbasic-...ta2.tar.gz
http://www.boriel.com/files/zxb/zxbasic-...-beta2.zip
http://www.boriel.com/files/zxb/zxbasic-...-win32.zip
http://www.boriel.com/files/zxb/zxbasic-...x64.tar.gz
http://www.boriel.com/files/zxb/zxbasic-...cos.tar.gz
Reply
#4
works, thanks
Reply
#5
Please use the latest beta from the other thread, not this one.
This fix was already released in final version.
Reply
#6
OK Thanks.

Is there any way for me to receive notification whenever a new version comes out?
What is the thread that announces new versions?
Reply
#7
We have a Telegram Channel (Spanish, mostly) for that, mostly for beta versions.
For final versions,. you can track Mastodon official account:
https://fosstodon.org/@zxbasic since I've decided to left Twitter (now X)
Also there's #boriel channel in Discord ZX Next official.
Reply
#8
Most of the updates are made because of the Wishlist forum or the Bug Reports forum.
Forum › Compilers and Computer Languages › ZX Basic Compiler › Wishlist
Forum › Compilers and Computer Languages › ZX Basic Compiler › Bug Reports

For me it would be simpler if the new versions were announced here.

So, all I had to do was subscribe to the Wishlist forum or the Bug Reports forum to find out when the new versions were available.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)