English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Irritating top-level problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-11-23 (15:34)
From: Jon Harrop <jon@f...>
Subject: Irritating top-level problem

I often use the OCaml top-level by copying and pasting code from a XEmacs or 
KWrite window into a KTerm. However, there appears to be a synchronization 
problem where the top-level prints two spaces after each newline at a random 
point in time. So the indentation is not only wrong but the code has random 
pairs of spaces injected into it. I assume this is a race condition between 
printing due to the pasting and printing after the top-level reads a newline.

Any ideas how to circumvent this problem? How is this synchronization supposed 
to occur?

Dr Jon Harrop, Flying Frog Consultancy Ltd.