malc has quit ["no reason"]
graydon has quit [Remote closed the connection]
Cryptor has joined #ocaml
Yurik has joined #ocaml
amanb has joined #ocaml
amanb has quit ["Testing /etc/pump.conf"]
Cryptor has quit [carter.openprojects.net irc.openprojects.net]
physarum has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
Dieb has quit [carter.openprojects.net irc.openprojects.net]
scipient has quit [carter.openprojects.net irc.openprojects.net]
skylan has quit [carter.openprojects.net irc.openprojects.net]
tav`` has quit [carter.openprojects.net irc.openprojects.net]
Cryptor has joined #ocaml
tav`` has joined #ocaml
scipient has joined #ocaml
smkl has joined #ocaml
Dieb has joined #ocaml
skylan has joined #ocaml
physarum has joined #ocaml
malc has joined #ocaml
gene9 has joined #ocaml
gene9 has quit ["b"]
malc has quit ["no reason"]
<
Yurik>
anybody here?
<
Yurik>
How can I tranform hidden type, say 'foo', that is defined as 'type foo = string' in .ml (not .mli) to string?
Cryptor has quit ["Leaving"]
<
smkl>
you need to have a function, like "val to_string : foo -> string"
<
Yurik>
but this module implementation is hidden from me
<
Yurik>
i assume i've only .mli and compiled binaries. i don't to patch it
<
smkl>
the point of hiding it is that you cannot convert it to string directly
* Yurik
is trying to find way to get string of Utext in Camomile
<
smkl>
Utext.t seems to be an object ...
<
Yurik>
now i see way only to get it char by char...
<
Yurik>
that seems a bad way
<
smkl>
well, camomile stores data internally in UCS4 format, so there are some conversions needed
<
Yurik>
i need to store Utext value in file in reasonable view
<
smkl>
and it's not clear how it should be converted
<
smkl>
"reasonable view" ?
<
Yurik>
in some binary format that will be not too big (so, no Utext serialization ;)
<
smkl>
the method ucs4 should work
<
Yurik>
what do you mean?
<
smkl>
the method ucs4 : unit -> string of Utext.t returns the text in the internal format
<
smkl>
or is that too big?
<
Yurik>
i don't see it my camomile distribution
<
Yurik>
may be it's old?
<
smkl>
perhaps it's a new addition, i'm just browsing CVS
<
Yurik>
no such method here at Utext.t :-((
* Yurik
is checkouting camomile from cvs
<
Yurik>
heh.. it is changed a lot
<
Yurik>
it doesn't compiles :-(
owll has joined #ocaml
<
Yurik>
owll: hi :)
<
smkl>
they have probably forgot to commit some changes
<
Yurik>
yeah, seems to be so :-((
<
smkl>
perhaps you could use Char_encoding.encode,decode
<
Yurik>
it works only w/ certain encoding, as i can understand :-(
<
smkl>
i'd try utf-16
malc has joined #ocaml
owll has quit ["Client Exiting"]
rubix has joined #ocaml
rubix has left #ocaml []
Yurik has quit ["Client Exiting"]