Jump to content
Sign in to follow this  
hloberg

undocumented error in XB compiler?

Recommended Posts

Started using Harry Wilhelm's XB compiler (which is a great compiler) but came across a bug that most people may never come across but took me a while to figure out what was wrong.

In XB you can assign a value to two or more variables with a comma. a.k.a. x=0::y=0 can be x,y=0

when i was compiling and old program the compiler kept locking up on this one line. after a while of trying everything I changed x,y=0 to x=0::y=0 on the line. turned out to be the problem and the compiler continued on.

i.e. don't use commas for multiple variable definition.

Just an FYI if ever you come across the same problem.

 

  • Like 1

Share this post


Link to post
Share on other sites

Oops! Sorry about that. I was sure it was mentioned in the docs but I just looked at them and it's not mentioned. I will try to fix the compiler to allow this or else will correct the docs.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...