Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-10-22 (16:30)
From: Chris Hecker <checker@d...>
Subject: [Caml-list] Re: char array vs. string

>  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.


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: