## Search found 600 matches

Sun Aug 04, 2019 9:12 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### Re: Introduction to BBC BASIC

and in this case also of the normals which are used for lighting On the subject of normals, it is normal for normals to need to be normalised! That is, usually the normal vector needs to be of unit length. This can be very conveniently arranged by combining a couple of BBC BASIC features, as follow...
Sat Aug 03, 2019 9:23 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### Re: Introduction to BBC BASIC

I'm still all at sea trying to work out the subscripting for a simple 2d rotation matrix. BBC BASIC needs it dimensioned precisely, where ANSI BASIC tends to do it for you It's complicated by there often being a choice of two alternatives: having the rotation matrix as the second term in the dot pr...
Thu Aug 01, 2019 12:52 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### Re: Introduction to BBC BASIC

BBC BASIC has never supported this option: all arrays have zero-based indices. Just to expand on that a little, BASICs which support the OPTION BASE stetement or equivalent usually implement DIM as follows: OPTION BASE 0 DIM a(4) : REM Array has 4 elements with indices 0, 1, 2, 3 OPTION BASE 1 DIM ...
Thu Aug 01, 2019 12:15 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Wed Jul 31, 2019 11:17 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Fri Jul 26, 2019 12:47 pm
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 83479

### 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 (43.62 KiB) Viewed 4359 times
Fri Jul 26, 2019 8:22 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 83479

### 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 ...
Thu Jul 25, 2019 4:27 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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).
Thu Jul 25, 2019 2:51 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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 ...
Tue Jul 23, 2019 2:44 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Tue Jul 23, 2019 1:27 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Tue Jul 23, 2019 1:12 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Tue Jul 23, 2019 10:14 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Mon Jul 22, 2019 10:08 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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 ...
Mon Jul 22, 2019 7:29 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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.
Mon Jul 22, 2019 5:57 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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!
Mon Jul 22, 2019 4:25 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Mon Jul 22, 2019 1:18 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Sun Jul 21, 2019 9:45 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Sun Jul 21, 2019 11:01 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 83479

### 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).
Sun Jul 21, 2019 10:55 am
Forum: Other programming languages
Topic: ScriptBasic
Replies: 1398
Views: 83479

### 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 ...
Sun Jul 21, 2019 9:31 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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
Sun Jul 21, 2019 9:05 am
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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 ...
Sat Jul 20, 2019 5:50 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

### 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...
Sat Jul 20, 2019 4:02 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 595
Views: 58735

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