LB Booster
General >> General Board >> LBB as LibertyBasic checker
http://lbb.conforums.com/index.cgi?board=general&action=display&num=1328733662

LBB as LibertyBasic checker
Post by tsh73 on Feb 8th, 2012, 7:41pm

I just want to share.
Now LBB is an another realisation of Liberty Basic - compared with C language, it will be compiler from other vendor.
And having 2 realizations of a language is good: you can catch errors other realization skips.

For example, I just found piece that should not work at all
Code:
' Draw a 1 x 1 Invisible Pixel Sprite
    #main.g, "Down"
    #main.g, "Color Black; Set 0 1"
    #main.g, "Getbmp pixel 0 0 0 1" 

from Drag'n'drop demo at JB board Drag and Drop Sprites
should actually have
Code:
"Getbmp pixel 0 0 1 2" 

(BMP with 0 width doesn't make sense, does it?)
Re: LBB as LibertyBasic checker
Post by Richard Russell on Feb 9th, 2012, 02:17am

on Feb 8th, 2012, 7:41pm, Guest-tsh73 wrote:
Now LBB is an another realisation of Liberty Basic - compared with C language, it will be compiler from other vendor.

Exactly! I don't think many people have properly understood this.

Quote:
from Drag'n'drop demo at JB board Drag and Drop Sprites

Thank you for drawing this demo to my attention, because it has highlighted a minor incompatibility: LBB is adding an unwanted space to the end of the SPRITECOLLIDES list. I will fix this in the next version.

Richard.