Browse thread
-
climb
- Chris Hecker
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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. 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