From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA26383; Tue, 22 Oct 2002 18:30:28 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA27868 for ; Tue, 22 Oct 2002 18:30:27 +0200 (MET DST) Received: from relay.pair.com (relay1.pair.com [209.68.1.20]) by concorde.inria.fr (8.11.1/8.11.1) with SMTP id g9MGUQ522284 for ; Tue, 22 Oct 2002 18:30:26 +0200 (MET DST) Received: (qmail 70433 invoked from network); 22 Oct 2002 16:30:06 -0000 Received: from adsl-host-sf-228.apexworld.net (HELO checkerlap.d6.com) (66.114.212.228) by relay1.pair.com with SMTP; 22 Oct 2002 16:30:05 -0000 X-pair-Authenticated: 66.114.212.228 Message-Id: <4.3.2.7.2.20021022092224.03604210@mail.d6.com> X-Sender: checker@mail.d6.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Tue, 22 Oct 2002 09:30:34 -0700 To: "climb" , "caml-list@inria.fr" From: Chris Hecker Subject: [Caml-list] Re: char array vs. string In-Reply-To: <200210221501.g9MF1X517085@concorde.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > i want to build a function f: char array -> string which just make > a char array into a string. But i dont want to do like this >let f ary= I think that's all you can do. A char array is a proper caml array of chars, and chars are stored as ints outside of strings. So, [|'a';'b';'c';'d'|] is 4 words long, while "abcd" is only 4 bytes long. Chris ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners