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
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-10 (17:48)
From: Olivier Andrieu <andrieu@i...>
Subject: Re: [Caml-list] Newbe question: Strings <-> char lists
 Juancarlo Añez [Thu, 10 Feb 2005]:
 > How does one convert a char list to a string?

Several possibilities :
 - read the replies to your previous message
 - read the FAQ
 - subscribe to the beginner's list http://groups.yahoo.com/group/ocaml_beginners

 > Why aren't functions for converting char lists to strings and back
 > part of the standard library.

It's mighty inefficient in terms of memory : in a string one character
take approximately 1 byte, in a char list it needs 3 words (12 bytes
on IA32).