LB Booster
« Jumping to conclusions »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:34am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Jumping to conclusions  (Read 336 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Jumping to conclusions
« Thread started on: Jan 22nd, 2014, 9:05pm »

I received this report of an 'LBB bug': "this program Works in Liberty BASIC but fails under LBB. The error message is: Bad hex or binary at line 17". Here is line 17 of the program in question:

Code:
AW.ACTIVATE = HexDec("&20000") 

It's perfectly true that this statement is accepted by LB but reports the above error message in LBB. But is the conclusion that it's an LBB bug reasonable?

Let's try this code in Liberty BASIC 4.04:

Code:
AW.ACTIVATE = HexDec("&20000")
print AW.ACTIVATE 

The value printed is.... zero!!

So in fact what we have is a mistake in the OP's code (he meant to write &H20000) which was correctly reported by LBB but incorrectly ignored by LB 4.04 - and the wrong value returned!

The moral of the story is: don't automatically assume that, if LBB reports an error but LB doesn't, LBB is at fault.

Richard.
« Last Edit: Jan 22nd, 2014, 9:14pm by Richard Russell » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls