Go to advanced search

by RichardRussell
Tue Jul 23, 2019 1:12 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

IIRC the original BBC basic I and II would only accept COLOUR. Maybe. When I say "all versions" I mean all current versions, i.e. all versions that will run on today's hardware. I know a few people still play with those early versions, mostly in emulation, but they hold no interest for me and I ten...
by RichardRussell
Tue Jul 23, 2019 10:14 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Speaking of colour, I understand there was an American edition of BBC Basic such that the COLOUR statement appeared as COLOR when the exact same tokenised source code was loaded into the editor. That's right. All versions of BBC BASIC will accept either COLOR or COLOUR on input (or when loading a p...
by RichardRussell
Mon Jul 22, 2019 10:08 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Support left to right or right to left but not both at the same time. I'm not sure that I understand what you mean. Every programming language that I know of uses an appproximation of English for its source code, something which I for one am pleased about! Left-to-right text is therefore enshrined ...
by RichardRussell
Mon Jul 22, 2019 7:29 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

If you have bidi support you can write code like this: Because BBC BASIC is tokenised, so characters with the high bit set represent keywords, you can't use Unicode for variable or function names but only in quoted strings, comments, DATA statements etc. Personally I don't think that's a bad thing.
by RichardRussell
Mon Jul 22, 2019 5:57 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Heater wrote:
Mon Jul 22, 2019 5:08 pm
If it's a significant piece of code and it works well and you want to share it then it matters not what people say. The code speaks for itself.
But if it has nothing to do with BBC BASIC, can you discuss it in another thread, please? I'd like my thread back!
by RichardRussell
Mon Jul 22, 2019 4:25 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

bidi languages with Unicode rendering If I can use that as an excuse to drag this thread, kicking and screaming, back on topic, something that I've not (yet) attempted to support is bi-directional text in the SDLIDE code editor. Support for Unicode (UTF-8) is there, so if you include Arabic or Hebr...
by RichardRussell
Mon Jul 22, 2019 1:18 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

I cannot see why most of the members here are making such a fuss about a piece of software they will never be able to use. I can't speak for "most of the members" but as far as I am concerned I was responding to the suggestion that it might be possible to write an automated conversion tool that wou...
by RichardRussell
Sun Jul 21, 2019 9:45 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Make sure to download the dependencies first. Install them and skip any warnings. You have to be kidding. There's no way I am going to risk installing a dozen or so ancient DLLs and OCXs, especially if I am expected to do so by running an unsigned Setup.exe which may request elevation under UAC! Th...
by RichardRussell
Sun Jul 21, 2019 11:01 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 84233

Re: ScriptBasic

rpdom wrote:
Sun Jul 21, 2019 4:57 am
That is a very bold statement. I see almost nothing but x86 PC systems almost everywhere I go.
I assume David's comment was tongue-in-cheek. He must know that Windows is by far the most popular OS for desktops and laptops (87.6% share according to Wikipedia).
by RichardRussell
Sun Jul 21, 2019 10:55 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 84233

Re: ScriptBasic

As far as I know there is no Brandy BASIC on RISC OS. Of course there is, I'm astonished you didn't know. Indeed at the Brandy home page it states that the RISC OS implementation "is the most complete version of the interpreter... It runs under RISC OS 3, 4 and 5. Versions are supplied to run 'out ...
by RichardRussell
Sun Jul 21, 2019 9:31 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Heater wrote:
Sun Jul 21, 2019 5:47 am
Can you post that file here perhaps we can work something out from it.
The official BasAlt website appears to be here but the links all point back to the same page or lead to a 404 :(
by RichardRussell
Sun Jul 21, 2019 9:05 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Try viewing the BasAlt documentation with StrongHelp (it is a StrongHelp manual). Just an idea. Is there a StrongHelp reader for Windows? I certainly don't have one. All documentation should be available in a standard format that everybody can read, and you can't get more standard than HTML or PDF ...
by RichardRussell
Sat Jul 20, 2019 5:50 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

In which Basic should the conversion tool be written and could it convert itself? Don't you need two conversion tools, one for each direction?! In all seriousness an 'integrated' BasAlt would probably need to have significantly greater functionality than Steve's existing bolt-on extensions do to su...
by RichardRussell
Sat Jul 20, 2019 4:02 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Using strings for byte arrays is some kind of kluge Except that strings are supported by a rich set of built-in functions, such as INSTR() for searching, and there are generally no similar functions that operate on byte arrays. So from a performance and convenience standpoint strings are often a be...
by RichardRussell
Sat Jul 20, 2019 2:15 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

I would still like to see the Basalt extensions become part of BASIC V and VI. If that were ever to happen it would make the rift between the Wilson and Russell strands of BBC BASIC unbreachable, because whatever the merits of Steve's extensions, and of mine, they are fundamentally incompatible (no...
by RichardRussell
Sat Jul 20, 2019 11:55 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

The method of handling strings with a 'striing information block' (SIB) with a single byte for the length rather baked that into the code. Before I supported arbitrary (32-bit) length strings, I extended the maximum length from 255 to 65535 characters without making the SIB any bigger. The old SIB ...
by RichardRussell
Sat Jul 20, 2019 11:41 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Why would anyone not believe it. It's a natural thing to do: There's nothing "natural" about a a maximum string length of 255 bytes, in my opinion! It's an entirely artificial limit. Or have a pointer to memory and put a null byte at the end. That's not really an option for two reasons. Firstly it'...
by RichardRussell
Sat Jul 20, 2019 9:18 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

I wouldn't use a BASIC that had a 64KB string length limitation. Early versions of BBC BASIC, including ARM BASIC VI which is the latest and 'best' from the Acorn stable, have a maximum string length of 255 bytes!! Can you believe it? And whilst there are various workarounds, such as using 'indirec...
by RichardRussell
Fri Jul 19, 2019 11:00 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Richard and I have also exchanged ideas on very long strings, each producing a library for our own versions. My huge string library was never very satisfactory, and I eventually abandoned it in favour of natively supporting arbitrary-length strings (limited only by available memory) in version 6 of...
by RichardRussell
Fri Jul 19, 2019 5:13 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

2) Matrix Brandy is actually closer to BASIC VI than BASIC V !! My head is beginning to hurt, but what happens when you attempt assign the result to an integer variable: a% = -2147483647 - 2147483647 I presume that BASIC VI still sets a% to 2 in this case (if not it's less compatible with BASIC V t...
by RichardRussell
Fri Jul 19, 2019 4:31 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

Acorn BASICs all return -4294967294, only the older Brandy BASIC (and earlier unfixed Matrix Brandy) returned 2. When you say "all" which versions do you mean precisely? My genuine BBC Master, running BASIC 4 ("(C)1984 Acorn") returns 2 , BeebEm emulating BASIC 2 ("(C)1982 Acorn") returns 2 and Red...
by RichardRussell
Fri Jul 19, 2019 4:18 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

did Acorn's Basics default to single or double precision floating point? Did you miss this comment in which I enquired whether your test for precision in the classic BASIC Fibo might be confused because BBC BASIC uses neither 32-bit ('single') nor 64-bit ('double') precision but 40-bits? It's a nic...
by RichardRussell
Fri Jul 19, 2019 4:12 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

No, it toggles two different code paths, one is the (corrected) original one that pulls the float from the stack, runs TOINT() (which floor()s the number, then casts it to a signed 32-bit integer) on it and pushes it to the stack as an int. The new one pulls the float from the stack, runs floor() o...
by RichardRussell
Fri Jul 19, 2019 1:43 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

I've been having more thoughts about this. And, while it deviates from RISC OS (and BBC Micro) BBC BASIC, I've added a run-time switch to Matrix Brandy to enable this behaviour of allowing INT() to process a number that can't be stored in a standard 32-bit integer variable. Thanks. Naturally I thin...
by RichardRussell
Fri Jul 19, 2019 8:46 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 636
Views: 60477

Re: Introduction to BBC BASIC

ScriptBasic takes it another level with name spaces. Brandy BASIC has that functionality (or at least is documented to have, I've never tried it) using the LIBRARY LOCAL statement. But it's the only version of BBC BASIC that does, so it's rather an outlier in that respect and if you use the feature...

Go to advanced search