hi,
after being annoyed by this for a while i finally managed to track down the following issue:
try: void main() { object rl=Stdio.Readline(); rl->write("first"); rl->write("second"); rl->newline(); }
notice how the second clobbers the first? this is particularely annoying in hilfe where i see it often.
the problem is in the readline write function which first resets the cursor to the beginning of the line.
this can be fixed in two possible ways: force a newline if the cursor is not in column 0, or don't reset the cursor.
i prefer adding the newline.
the one thing i am concerned about is that someone might expect this behaviour by now and a compatibility thing is needed.
thoughts? any other reason not to fix this now?
patches attached.
greetings, martin.