Quote from: lettersquash on March 24, 2020, 07:51:10 PM here's a better example for being a bit simpler. I have tried your example. The problem of "Inkey" is typematic delay: when I press a key but don't release, the "@" will move one step, then will stop a moment, then will move again. I see, "@" did not move continuously. It is a problem.
here's a better example for being a bit simpler.
sbasicg.exe -- It is an editor with dark texts(dark green, dark grey, etc.) and black background. Therefore, it is hard to view. If colours can be changed, this editor will be suitable for editing.
Did you see this? Scroll down to "How to help design a better looking editor color theme" https://smallbasic.github.io/pages/sdl.html
Cheers,
Hmm, yes, thanks, maybe that's all it is. It is of course dependent on the typematic delay, but it will also depend on the speed the interpreter processes the command. Maybe it's as fast as it should be, whatever that means, I was just surprised that I can't write code with flow control via some keys in the way I expected. However, I checked out the same kind of test in BBC BASIC for Windows, and that wasn't any better.
Quote from: chrisws on March 16, 2020, 09:30:20 AMCheers,Hi...Another proposal: add this feature to the next version of sbasicg.exe: make EXE file -- pack sbasicg.exe and one source code file into one single executable file. Two purposes:1. SmallBASIC users can distribute their finished programs to end-users easily.2. Source code will not be viewed easily by end-users. Thus source code will be protected.
Quote from: round157 on March 26, 2020, 12:24:08 AMQuote from: chrisws on March 16, 2020, 09:30:20 AMCheers,Hi...Another proposal: add this feature to the next version of sbasicg.exe: make EXE file -- pack sbasicg.exe and one source code file into one single executable file. Two purposes:1. SmallBASIC users can distribute their finished programs to end-users easily.2. Source code will not be viewed easily by end-users. Thus source code will be protected. It's a lot of work building a compiler for an interpreter!
Hi... I didn't mean "compile". Not "compile". I said "pack". I meant "embed" or "attach". I try to explain with my insufficient knowledge:
QuoteHi... I didn't mean "compile". Not "compile". I said "pack". I meant "embed" or "attach". I try to explain with my insufficient knowledge:Oh yeah! the SDLBasic method, OK now I understand. Crypt the bas source, and attach to the end of a special version of SB that tells itself to find the encrypted part of itself at the end of normal SB.exe, decrypt and run that decryption, piece of cake! ;-)
@authorIs there something like "continue" (skip a for-loop iteration)? Referece/language does not yield any such.