FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Bug Fixes, Implemented Suggestions
(Moderator: fry)
   print() bug
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: print() bug  (Read 221 times)
Mike Davis

WWW
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


WWW
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.
 
 
Pages: 1 

« Previous topic | Next topic »