On Sat, 09 Sep 2006 23:34:55 -0300, David Sankel <[EMAIL PROTECTED]> wrote:

On 9/5/06, Bruno Martínez <[EMAIL PROTECTED]> wrote:

C++ avoids this problem 'tieing' cin and cout.  Why can't haskell do the
same?


I was thinking the same thing. I'm imagining a situation where processes are communicating to each other using pipes, but cannot think of a concrete
case.

I don't see the problem. According to "The C++ Programming Language" cout is flushed only when cin encounters an underflow, so it doesn't seem costly either.

Do you know if C++ has any way to disable tying std::cin and
std::cout?

Yes, cin.tie(NULL).

Bruno

    Conectese mas rapido y ahorre hasta un 50%
   Tel. 0909.2030 =>  $0,15 IVA incluido el minuto
______________________________________________________
http://www.internet.com.uy - En Uruguay somos internet

_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to