From: "Sylvain LE GALL" <syl...@po...>
Subject: Re: [Ocaml-lib-devel] Unicode, Camomile et al
Date: Sun, 5 Oct 2003 14:08:45 +0200
> So, the question is : could i have the two libraries ( camomile and
> extlib ) at the same time for one app and if i can have it, could i
> use the same data structure in the two library ( the second question is
> problematic to my mind, because even if they had the same name, the two
> data structure could not cooperate... ).
Both codes are exactly same, so have exactly same interfaces. Since
uchar is an abstract type, you cannot mix both types, that is, you
cannot pass extlib's uchar to camomile's functions and vice verse. On
the other hand, UTF-8 string is a normal string. So you can pass them
around.
In future, when extlib is widespread, I may deprecate uchar and utf8
of camomile, and make camomile an extension of unicode facilities of
extlib.
--
Yamagata Yoriyuki
|