Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: stdout in Unix module
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pierre Weis <Pierre.Weis@i...>
Subject: Re: stdout in Unix module
> Once a 'open Unix' directive has been called I get the following compilation 
> conflict:
> 
> flush stdout;;
>       ^^^^^^
> This expression has type Unix.file_descr but is here used with type out_channel

You should explicitely name stdout Pervasives.stdout, not to confuse
with Unix.stdout.

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/