Re: COLON algorithm
Posted: Sun Jan 19, 2025 10:08 pm
That would be the perfect and the best solution, 30 years ago. Completely agree.bwinkel67 wrote: Sun Jan 19, 2025 9:27 pm So this question is not directed at the BASIC code here but just a general one. I'm surprised this hadn't ever been addressed by any of those Sinclair QL World Simon Goodwin DIY code bits, or by the many add-on toolkits that someone wrote. Really LRUN, EXEC, and EXEC_W ought to set some system variable that could be checked (similar to ver$, maybe called dev$) to see which device a program was loaded or executed from,
But it was not done, so this that I have share solve partially the problem. Another way is a keylogger and the logic to extract the last unit referenced. What also gives an extra beneficts of recall last N commands executed or typed.
Now, Let's imagine that it is done what was not 30 or 40 years ago (1984). To change the QDOS implies that those software that will use this var will be used only for people with the new ROM version. Because is using a var that doesn't exist before. The main part of new users as I am, won't be able to use it. Or people who don't want to change their ROMs or open their QLs due to lack of skills.
So this one can solve the problem, not the best way, that's true. What you have exposed is how it should have be done. Still a solution.
I don't know that, what does this code do?bwinkel67 wrote: Sun Jan 19, 2025 9:27 pm otherwise it's easy enough to add a one-liner: INPUT #0, "Device? ";dev$
Remember that I am new
