[MLton] Representation of strings in the FFI

Jens Axel Søgaard jensaxel@soegaard.net
Wed, 27 Apr 2005 00:40:45 +0200

Henry Cejtin wrote:

> Not from the char-* itself.  Of course you can always pass along the
> String.size as another argument.

The internal representation of a string must contain the length?
Why not just return a pointer to the internal representation?

How about the other way, i.e. importing a strings from C to
Mlton? How do I tell MLton how long the string is?

The same question goes for arrays and vectors.

Jens Axel Søgaard