|
Author |
Topic: print() bug (Read 221 times) |
|
Mike Davis
|
print() bug
« on: Jan 2nd, 2003, 10:31pm » |
|
It seems that print() calls won't print anything unless eventually followed by a println(). So, void setup() { print("Hi!"); } prints nothing; but void setup() { print("Hi!"); println(); } does. (Using 0046, Windows)
|
« Last Edit: Jan 2nd, 2003, 10:32pm by Mike Davis » |
|
|
|
|
fry
|
Re: print() bug
« Reply #1 on: Jan 26th, 2003, 9:12pm » |
|
not *really* a bug (as mentioned elsewhere.. or maybe those posts got deleted) but fixed it anyways in 0049 because it certainly feels like a bug. normally, streams (like the one used to spew to the console) will buffer until they get a lot of chars or a newline.. this is to make things fast. however it's confusing when the print() doesn't show anything, so we'll opt for the clearer, but slower method since it's more appropriate for the p5 audience.
|
|
|
|
|