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
CSL executable for Window s, 1995 vintage. Or Jens Klöumlcker?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-04-12 (18:32)
From: blue storm <bluestorm.dylc@g...>
Subject: Re:_[Caml-list]_CSL_executable_for_Windows,_1995_vin tage._Or_Jens_Klöumlcker?
On Sun, Apr 12, 2009 at 7:47 PM, Stéphane Glondu <steph@glondu.net> wrote:
> Ian S. Worthington a écrit :
>> Or are the differences between CSL and OCAML so slight that someone with no
>> experience should be able to get it working quickly?
> IMHO, there might be differences (mostly syntactical or stdlib-related),
> but the translation should be straightforward nonetheless. I'd rather
> convert the program from CSL to OCaml than adapt CSL for a "modern C
> compiler" if it doesn't work out of the box.

I just had a look, and that's a 5-lines-change story.
Here is the diff needed to make it compile with ocaml (3.10) :

An example file (from the manual) and the given output (wich I didn't
checked for corectness) :