Author |
Topic: LB Booster version 3.00 released (Read 9012 times) |
|
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
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
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.
|
|
Logged
|
|
|
|
James
New Member
member is offline


Posts: 42
|
 |
Re: LB Booster version 3.00 released
« Reply #16 on: Mar 2nd, 2015, 05:57am » |
|
Thanks Mr. Russel for this and everything!!
|
|
Logged
|
|
|
|
|