Outputting into console without a newline?
Posted: Sun Feb 22, 2015 8:46 pm
Is it possible to output a character into console without outputting a newline. My interpreter would need such a functionality.
The Cross-Platform Multimedia Application Layer
https://www.hollywood-mal.com/forums/
Code: Select all
x=1
y=2
string="X:"..x.."Y:"..y
debugprint(string)That won't work as the interpreters simple virtual machine is executing a byte code, where printing of a string literal is encoded as a sequence of 'wrc character' op-codes to print character at a time followed by a 'wrl' op-code to print the line feed at the end.Bugala wrote:you probably know this already, but would a workaround of joining strings together work out?
Code: Select all
array1.10: integer;
array2.20.20: integer;
Unfortunately, it isn't. If you had asked this two weeks earlier, I could have implemented it for 6.0 because it's obviously pretty trivial but now I'm afraid you'll have to wait until the next update...jalih wrote:Is it possible to output a character into console without outputting a newline. My interpreter would need such a functionality.