From: Chris Hecker <checker@d6.com>
To: "climb" <onlyclimb@163.com>, "caml-list@inria.fr" <caml-list@inria.fr>
Subject: [Caml-list] Re: char array vs. string
Date: Tue, 22 Oct 2002 09:30:34 -0700 [thread overview]
Message-ID: <4.3.2.7.2.20021022092224.03604210@mail.d6.com> (raw)
In-Reply-To: <200210221501.g9MF1X517085@concorde.inria.fr>
> 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
prev parent reply other threads:[~2002-10-22 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-22 15:01 climb
2002-10-22 16:30 ` Chris Hecker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4.3.2.7.2.20021022092224.03604210@mail.d6.com \
--to=checker@d6.com \
--cc=caml-list@inria.fr \
--cc=onlyclimb@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox