BBC BASIC for Windows
« Possible minor bug in IDE »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 9:59pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Possible minor bug in IDE  (Read 773 times)
David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Possible minor bug in IDE
« Thread started on: Mar 3rd, 2012, 10:44am »

Type A% = PAGE + TOP into the IDE, press Enter, and you'll see what I mean.

It's minor, and probably already known about.


David.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Possible minor bug in IDE
« Reply #1 on: Mar 3rd, 2012, 11:18am »

on Mar 3rd, 2012, 10:44am, David Williams wrote:
Type A% = PAGE + TOP into the IDE, press Enter, and you'll see what I mean.

I don't see anything. Unless you're talking about the much discussed and correct display of the P in black.

For the explanation of why it's not a bug, see this earlier discussion:

http://tech.groups.yahoo.com/group/bb4w/message/15587

In practice you should be using LOMEM instead of TOP anyway, so the issue doesn't arise. LOMEM is a pseudo-variable and its value is returned very quickly. TOP is dynamically calculated each time you use the function, by scanning the program from PAGE upwards until the end is found. Therefore it's very slow (especially if the program is large).

LOMEM and TOP always have the same value (it's theoretically possible to set LOMEM to a different value, but there's no point and a CHAIN, CLEAR or RUN will set it back equal to TOP again).

Richard.

P.S. Your message should ideally have gone in the Program Editor board, not here.
« Last Edit: Mar 3rd, 2012, 11:38am by admin » User IP Logged

David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: Possible minor bug in IDE
« Reply #2 on: Mar 3rd, 2012, 12:09pm »

on Mar 3rd, 2012, 11:18am, Richard Russell wrote:
P.S. Your message should ideally have gone in the Program Editor board, not here.


Hmm. Interesting. Ya' know, I could've sworn, that earlier today, just before I typed my post, the description for this board read something rather like this:

"You can report suspected bugs, request new features, and praise (or criticise) BBC BASIC for Windows here."

But now it simply reads: "You can praise (or criticise!) BBC BASIC for Windows here."

I must have been seeing things! Such are the perils of early morning drinking sessions, eh.

Thanks for the advice re. using LOMEM rather than TOP.


David.
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: Possible minor bug in IDE
« Reply #3 on: Mar 3rd, 2012, 2:53pm »

on Mar 3rd, 2012, 12:09pm, David Williams wrote:
But now it simply reads: "You can praise (or criticise!) BBC BASIC for Windows here."

I changed it, as I'm sure you guessed! Clearly it should never have implied that bugs should be reported here, when there is a board specifically concerned with the part of BB4W affected (e.g. IDE, Editor or Compiler). Just as messages shouldn't be posted to the General board when there is a more specific one available.

I am constantly tweaking the various BB4W-related sites that I run, in reaction to the way they get used.

Richard.
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