Jump to content

Photo

undocumented error in XB compiler?

XB compiler error

1 reply to this topic

#1 hloberg OFFLINE  

hloberg

    Dragonstomper

  • 774 posts
  • Location:Land of the Road Runners (they don't go beep,beep)

Posted Sat Sep 28, 2013 10:27 AM

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.

 



#2 senior_falcon OFFLINE  

senior_falcon

    Stargunner

  • 1,489 posts
  • Location:Lansing, NY, USA

Posted Sun Sep 29, 2013 8:11 PM

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.







Also tagged with one or more of these keywords: XB, compiler, error

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users