Go to advanced search

by RichardRussell
Thu Aug 01, 2019 12:15 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 544
Views: 24580

Re: Introduction to BBC BASIC

I was a bit surprised that PRINT a(1) prints '2'. The BASIC you were using probably has the OPTION BASE statement which allows you to specify whether the array indices begin at 0 or 1, with it defaulting to OPTION BASE 1. BBC BASIC has never supported this option: all arrays have zero-based indices...
by RichardRussell
Wed Jul 31, 2019 11:17 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 544
Views: 24580

Re: Introduction to BBC BASIC

In another thread the matter of arrays in BASIC has been discussed. It is interesting to note that some of the very earliest BASICs supported 'whole array' operations using the MAT keyword. For example the statement MAT B = A would copy every element of the array A() into the corresponding element o...
by RichardRussell
Fri Jul 26, 2019 12:47 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1361
Views: 47756

Re: ScriptBasic

hippy wrote:
Fri Jul 26, 2019 12:20 pm
when there is no option to get those account names back ?
What makes you think there is no such option in phpBB? As far as I am aware an admin with the right privileges can do that:
unban.png
unban.png (43.62 KiB) Viewed 422 times
by RichardRussell
Fri Jul 26, 2019 8:22 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1361
Views: 47756

Re: ScriptBasic

I don't think you will find any ScriptBasic posts after the 20th until my personal account was disabled. Just to say, in this specific case you have my full support. I suggest you take the issue to a private discussion with an administrator who has the authority to sort it out (I am confident that ...
by RichardRussell
Thu Jul 25, 2019 4:27 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 544
Views: 24580

Re: Introduction to BBC BASIC

RichardRussell wrote:
Thu Jul 25, 2019 2:51 pm
This has a rather risqué Easter Egg, can you find it?!
Try not to cheat by looking at the code! Adding an Easter Egg to a short program which is published in source form is a whole new level of stupidity (not that I've been silly enough to draw attention to it with a comment).
by RichardRussell
Thu Jul 25, 2019 2:51 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 544
Views: 24580

Re: Introduction to BBC BASIC

I have released version 1.05a of BBC BASIC for SDL 2.0 , the cross-platform programming language for Windows, MacOS, Linux, Raspbian (Raspberry Pi), Android and iOS. The changes in this version are as follows: BASIC Interpreter / Run Time Engine Fixed a bug causing MOUSE and graphics coordinates to ...
by RichardRussell
Tue Jul 23, 2019 2:44 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 544
Views: 24580

Re: Introduction to BBC BASIC

Maybe it's worth adding something like REFRESH 0 / REFRESH 1 My hands are tied because of the way SDL2/OpenGL work. The renderer is created with the SDL_RENDERER_PRESENTVSYNC flag so screen refreshes are always synchronised with vsync. I would have done the same in BB4W had there been any straightf...
by RichardRussell
Tue Jul 23, 2019 1:27 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 544
Views: 24580

Re: Introduction to BBC BASIC

Why hanoi.bbc in bbcsdl for Windows is about 10 times slower than in bbcwdem6 for Windows? It's because of the *REFRESH command in PROCHANOI(). In BBC BASIC for Windows *REFRESH sets a flag to indicate that the screen should be updated at the next opportunity, and then returns immediately. In BBC B...
by RichardRussell
Tue Jul 23, 2019 1:12 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 1361
Views: 47756

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: 1361
Views: 47756

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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: 544
Views: 24580

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

Go to advanced search