KenDown wrote: ↑
Tue 05 Nov 2019, 06:28
As I don't use BBC SDL at all
I hope you're not typical! BBCSDL runs perfectly well in Windows and is completely free and unrestricted, so is a good choice for anybody who might want their programs to run on other platforms (or simply prefers not to pay!). It's also being actively developed, unlike BB4W.
Where it admittedly does fall short is that it doesn't support calling Windows API functions (which means you can't write programs that exactly reproduce the standard Windows GUI), it can't create single-file executables (instead it creates an 'application bundle' in the form of a zip file) and it doesn't support hard-copy output (e.g. to a printer).
I do have a feature in my Display program that allows me to execute another program, usually one that plots a graph or performs some other graphical function, but in that case I just use OSCLI(progname$)
is synonymous with OSCLI "RUN " + progname$
, the only difference being that the former will fail if progname$
happens to start with the name of one of the built-in commands, whereas the latter will work in that situation. This has been the case since the BBC Micro in 1982. In BB4W or BBCSDL both commands can take a trailing semicolon to indicate 'return immediately without waiting for the command to terminate'; this is documented here
I can't find this SDLIDE.bbc - is it one of the example programs?
Sorry, I assumed you were familiar with BBCSDL. SDLIDE is one of the two IDEs (Integrated Development Environments) supplied: Andy Parkes' BBCEdit
and my SDLIDE
. BBCEdit was the original IDE whereas mine came along some while later; both remain supported but mine has been more actively developed of late. SDLIDE is designed to have a similar look-and-feel to the BB4W IDE.
One of the crucial features of BBCSDL, which constrasts starkly with BB4W, is that both IDEs are themselves BBC BASIC programs! When BB4W was released in 2001 PCs weren't fast enough, and BBC BASIC wasn't sophisticated enough, for the IDE to be written in BASIC; instead it was written in C. But now BBC BASIC is more than capable of implementing a fairly sophisticated IDE, and of course that confers some significant advantages. Firstly it is inherently cross-platform; secondly it is amenable to modification by the user - if there's a feature you want or something that doesn't work the way you prefer, change it!
But to get back on topic, one of the many advantages of BBCSDL is that by executing the BASIC program via OSCLI (with a trailing semicolon) the IDE is completely protected from the user's program crashing, however catastrophically. In BB4W a BASIC program can, and often does, take the IDE down with it if it fails sufficiently seriously.
My posts are moderated; if you are seeing this it has already been approved. If you have a comment about the style or tone of the message please report it to the moderators by clicking the exclamation mark icon rather than complaining on the public forum.