Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7610

Other programming languages • Re: Basic on Raspberry

$
0
0
IDE is a thing of the past, the times of DOS! OS controls are not used. It looks very primitive.
You are wanting native 'OS controls' to be used on a cross-platform product? That would be very difficult, and would mean that the different editions (Windows, MacOS, Linux etc.) would not only have to use substantially different code, they would look completely different too!

My strong opinion is that a cross-platform product should present as far as possible an identical interface on every supported platform.
There is no support for national languages ​​and I can't write Chinese characters into a string variable or comment.
That's completely untrue, the entire Unicode Basic Multilingual Plane is supported. The only reason that you can't write Chinese characters in a string constant is that the default supplied font - DejaVuSansMono - doesn't contain Chinese glyphs. If you use a font which does, it will work.
What should I do if there is no internet (this is possible on Raspberry PI)?
It's a fair point. You could download the manual onto the local machine, but it's not as convenient has having it built-in like BBC BASIC for Windows does.
When I place the cursor on a keyword and press F1, it should open a help page with that keyword, but it doesn't!
You say "should" as if it's a universal feature of all IDEs. It's the first time anybody has suggested it, I could certainly consider adding it.
Why does an error message appear if the keywords are in lowercase? BASIC is not a case sensitive language like C++.
BBC BASIC (which remember is nearly 44 years old) has always been case-sensitive. But you can turn that off in the Options menu.
How can I use OS functions for example WinAPI in Windows?
How can I call functions from dll/so/dylib?
That's what the SYS statement does!
Is it possible to link a static library written in another programming language? For example, I need to call functions from pigpio, is this possible?
BBC BASIC is interpreted, so you can't link to a static library. You would need to build the library as a .dll or .so.
I didn't find any built-in tools to create windows and controls (text, button, list, etc.). Is it possible?
You didn't look very hard, did you? Both supplied IDEs are themselves BBC BASIC programs! ;-)
What about multithreading? Modern processors are multi-core and support BBC BASIC multithreading?
No, as an interpreted language it doesn't support 'user' multithreading (it uses multithreading internally, but I assume that's not what you mean).

I get the impression that you are looking for a compiled language; if that's the case then BBC BASIC is not suitable. The applications that BBC BASIC is primarily intended for are those which might more conventionally be done in Python or JavaScript, not the sort of application that you might use C or C++ for..

Statistics: Posted by RichardRussell — Wed Mar 19, 2025 2:07 pm



Viewing all articles
Browse latest Browse all 7610

Trending Articles