LB Booster
« LB Booster version 3.00 released »

Welcome Guest. Please Login or Register.
Sep 23rd, 2017, 11:36pm


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
LB Umbrella forum
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1 2 3  Notify Send Topic Print
 veryhotthread  Author  Topic: LB Booster version 3.00 released  (Read 6986 times)
JosephE
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 35
xx Re: LB Booster version 3.00 released
« Reply #3 on: Mar 1st, 2015, 5:42pm »

Are arrays inside classes local?
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1269
xx 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.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1269
xx 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.
User IP Logged

JosephE
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 35
xx 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
 
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1269
xx 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.
« Last Edit: Mar 1st, 2015, 6:23pm by Richard Russell » User IP Logged

JosephE
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 35
xx 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 wink
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1269
xx 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 wink

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.
User IP Logged

JosephE
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 35
xx 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 » User IP Logged

tsh73
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 196
xx 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.
User IP Logged

Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 143
xx 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.
User IP Logged

JosephE
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 35
xx 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.
User IP Logged

Richey
New Member
Image


member is offline

Avatar




PM


Posts: 14
xx 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.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1269
xx Re: LB Booster version 3.00 released
« Reply #15 on: Mar 1st, 2015, 9:58pm »

on Mar 1st, 2015, 7:53pm, JosephE wrote:
What about something like this (reminiscent of VB)?
Code:
function myFunction(parameter as MyObject) 

What do you expect to be able to do with the object once you've got it into the function? Given the OOP model I've adopted for LBB all you could do is call its methods:

Code:
call parameter::method
lvar = parameter::method() 

Can you give an example of how you think such a facility might actually be used in practice?

Richard.
User IP Logged

James
New Member
Image


member is offline

Avatar




PM


Posts: 42
xx Re: LB Booster version 3.00 released
« Reply #16 on: Mar 2nd, 2015, 05:57am »

Thanks Mr. Russel for this and everything!! cheesy
User IP Logged

terciops
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 5
xx Re: LB Booster version 3.00 released
« Reply #17 on: Mar 2nd, 2015, 09:18am »

Richard,
what a star you are. This new release runs me short on superlatives. I love the IDE colouring and the OOP is sending shivers down me timbers....

Now if someone would come up with include files with some good old fashioned SQLITE and JSON handling we could set the PC world alight with this 'new' BASIC.

Well done, and I am very glad that you didn't feel the need to set aside your keyboard and abandon LBB as it looked like you might last year. The coding world would have been much the poorer had that happened.

Ken
cheesy
User IP Logged

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

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls