Author |
Topic: LB Booster version 3.00 released (Read 9011 times) |
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
LB Booster version 3.00 released
« Thread started on: Mar 1st, 2015, 11:41am » |
|
I am pleased to announce the release of LB Booster version 3.00. It may be downloaded from here:
http://lbbooster.com/LBB.exe (IDE/compiler) http://lbbooster.com/LBBRUN.exe (optional runtime engine)
You will need administrative privileges when running the program for the first time after upgrading (in Windows Vista, 7 and 8/8.1, with UAC enabled, use 'Run as administrator').
Changes in this version include:
Extensions to the Liberty BASIC language:
Object Oriented Programming (OOP): Classes, Objects, Properties, Methods, Constructors, Destructors, Inheritance, Containment etc!
Structured Exception Handling (SEH): TRY, CATCH, END TRY & THROW.
Compound assignment operators (+=. -=, *=, /=).
Array elements may be passed to functions and subs By Reference.
The RUN statement has an option to wait until the program exits.
The graphics PRINT command has an option to suppress the dump.
You can paste into the mainwin INPUT statement using Ctrl+V.
Compatibility Improvements:
LPRINT word-wraps at the end of a line.
If you enter a very long line in response to INPUT, the mainwin scrolls automatically to keep the caret visible.
Enhancements to the Integrated Development Environment (IDE):
Syntax coloring, with customizable colors!
File... Compare... shows differences from a previous version.
File... Insert... inserts a file at the current caret position.
Edit... Go To... (Ctrl+G) jumps to a specified line number.
Edit... Find... supports Up/Down and Find Previous (Shift+F3).
The Find/Replace dialogs are initialised with any selected text.
The Status Bar shows Encoding, Overtype, Capslock, Numlock states.
The NOMAINWIN statement is ignored when run in Debug mode.
Richard.
|
|
|
|
JosephE
New Member
member is offline
Gender:
Posts: 35
|
|
Re: LB Booster version 3.00 released
« Reply #1 on: Mar 1st, 2015, 5:22pm » |
|
This is absolutely amazing. I'm doing a project in LBB right now, so I'm going to try and take advantage of these new features and let you know how it goes.
Can't wait to try it!
|
|
Logged
|
|
|
|
tsh73
Full Member
member is offline
Gender:
Posts: 210
|
|
Re: LB Booster version 3.00 released
« Reply #2 on: Mar 1st, 2015, 5:36pm » |
|
New features sound great. Juts got some problem trying: Problems with syntax coloring Left: syntax coloring is off. Right: syntax coloring is on
Font set to Courier New, but with coloring off font looks like arial (or something like that) And with coloring on - font looks like Courier but spacing is definitely off.
(I'm on XP Home SP3)
|
|
Logged
|
|
|
|
JosephE
New Member
member is offline
Gender:
Posts: 35
|
|
Re: LB Booster version 3.00 released
« Reply #3 on: Mar 1st, 2015, 5:42pm » |
|
Are arrays inside classes local?
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: LB Booster version 3.00 released
« Reply #4 on: Mar 1st, 2015, 5:51pm » |
|
on Mar 1st, 2015, 5:36pm, tsh73 wrote:Font set to Courier New, but with coloring off font looks like arial (or something like that) |
|
That's the fault! If the native Richedit control isn't recognising the font selection with the colouring off there's no way it is going to work with the colouring on! I can't say what the problem is, but it must be specific to your system (works fine with Courier New and XP SP3 here).
I should have said, but I'll say it now: if the Syntax Colouring doesn't work just switch it off; you are no worse off than you were before. It's a bonus feature for those for whom it works properly. If you're unlucky and it doesn't work, there is nothing I can do about it. Sorry.
Richard.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: LB Booster version 3.00 released
« Reply #5 on: Mar 1st, 2015, 5:55pm » |
|
on Mar 1st, 2015, 5:42pm, JosephE wrote:Are arrays inside classes local? |
|
This is what it says in the docs: "Unlike conventional arrays, class property arrays are not global.".
Richard.
|
|
Logged
|
|
|
|
JosephE
New Member
member is offline
Gender:
Posts: 35
|
|
Re: LB Booster version 3.00 released
« Reply #6 on: Mar 1st, 2015, 6:02pm » |
|
Thank you, I missed that. I've been referencing your documentation while I rewrite my code around the new OOP features.
Is this good practice?
Code:
global MAXSIZE
MAXSIZE = 10
class myClass
dim array(MAXSIZE)
end class
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: LB Booster version 3.00 released
« Reply #7 on: Mar 1st, 2015, 6:22pm » |
|
on Mar 1st, 2015, 6:02pm, JosephE wrote:Is this good practice? Code:global MAXSIZE
MAXSIZE = 10
class myClass
dim array(MAXSIZE)
end class |
|
Using a global you mean? I can't see anything wrong with it.
Depending on the extent to which people play with OOP, I expect there will be requests to add more features (I know Bluatigro would like to be able to pass objects as parameters!). We will have to see how we go.
Richard.
|
|
|
|
JosephE
New Member
member is offline
Gender:
Posts: 35
|
|
Re: LB Booster version 3.00 released
« Reply #8 on: Mar 1st, 2015, 6:32pm » |
|
Passing and returning objects from functions would be brilliant, if you ever get around to it
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline
Posts: 1348
|
|
Re: LB Booster version 3.00 released
« Reply #9 on: Mar 1st, 2015, 6:43pm » |
|
on Mar 1st, 2015, 6:32pm, JosephE wrote:Passing and returning objects from functions would be brilliant, if you ever get around to it |
|
The challenge is to devise a syntax that is compatible with the rest of Liberty BASIC; it's tricky to bolt-on that kind of feature without breaking existing programs. Any suggestions would be welcome!
Is the Syntax Colouring working for you?
Richard.
|
|
Logged
|
|
|
|
JosephE
New Member
member is offline
Gender:
Posts: 35
|
|
Re: LB Booster version 3.00 released
« Reply #10 on: Mar 1st, 2015, 7:53pm » |
|
The syntax coloring is working great! (Windows 8.1, brand new custom built computer)
What about something like this (reminiscent of VB)?
Code:function myFunction(parameter as MyObject, number, string$) as MyObject
myFunction = new MyObject ' or a reference to an object instance in another variable
end function
|
« Last Edit: Mar 1st, 2015, 7:53pm by JosephE » |
Logged
|
|
|
|
tsh73
Full Member
member is offline
Gender:
Posts: 210
|
|
Re: LB Booster version 3.00 released
« Reply #11 on: Mar 1st, 2015, 7:55pm » |
|
Just for a record, it looks like syntax coloring for me works with any font I tried (gave up after 10) but Courier or Courier new. So I set it to Lucida Console.
|
|
Logged
|
|
|
|
Alincon
Full Member
member is offline
Posts: 147
|
|
Re: LB Booster version 3.00 released
« Reply #12 on: Mar 1st, 2015, 8:34pm » |
|
Gee, I'm not used to developers delivering products on time. These are significant improvements, indeed.
About downloading and installing: should I remove v2.80 before downloading 3.0, or will 3.0 overlay 2.80?
r.m.
|
|
Logged
|
|
|
|
JosephE
New Member
member is offline
Gender:
Posts: 35
|
|
Re: LB Booster version 3.00 released
« Reply #13 on: Mar 1st, 2015, 8:46pm » |
|
on Mar 1st, 2015, 8:34pm, Alincon wrote:About downloading and installing: should I remove v2.80 before downloading 3.0, or will 3.0 overlay 2.80? |
|
You're pretty much just downloading an executable, so you can rename your previous version and dump the new one in the same place. I haven't found any significant bugs in 3.0 yet, but I'm hanging onto 2.8 just in case.
|
|
Logged
|
|
|
|
Richey
New Member
member is offline
Posts: 14
|
|
Re: LB Booster version 3.00 released
« Reply #14 on: Mar 1st, 2015, 9:26pm » |
|
on Mar 1st, 2015, 11:41am, Richard Russell wrote:I am pleased to announce the release of LB Booster version 3.00. |
|
Richard, this is superb - but those of us who are also BBC BASIC for Windows users have come to expect no less. This new version also allows me the chance to experiment with OOP using BASIC, which is brilliant and the syntax colouring means even less need to revert back to the original LB IDE. Congratulations and many thanks for your continued efforts on this.
|
|
Logged
|
|
|
|
|