Closed frenchfaso closed 3 years ago
Since strings are static in XC=BASIC v2, you can only manipulate them using POKE. This one is pretty short and it works:
char$ = " "
loop:
poke char$, 205 + rshift!(rnd!(),7)
print char$;
goto loop
IMHO source code size doesn't really matter for a compiled language. It should be readable rather than compact.
I like that! and it is blazingly fast :open_mouth:
IMHO source code size doesn't really matter for a compiled language. It should be readable rather than compact.
good point, it totally makes sense, it's the compiler that will optimize it for speed and/or compactness.
I know it's silly, but... how would one write the famous 10 PRINT one-liner in XC-Basic?
something like this would work...
..but it's obviously not a one-liner :grin: Is it possible to print a variable (byte) as PETSCI with the print statement?