... No. OCaml understands character encodings as well as any other language, and there are comprehensive conversion libraries available. It's just that the...
... I think this came up in the context of Unison before and there was an issue with GTK or LablGTK as well. I can't remember what but you might check that ...
Hi, In the C interface, while it is safe to handle a pointer to a C structure by an abstract type, I wonder if it is also possible to handle it by a ...
Florent Monnier
fmonnier@...
Jan 4, 2008 6:02 pm
9172
... Either should work, because both are still abstract types. I implemented phantom types in ocaml-libvirt in this way. Rich. -- Richard Jones Red Hat...
Hi, ... I understand what you mean. In the precise case you gave indeed there is no trick about what is the type of v. But you have to think in a more ...
Florent Monnier
fmonnier@...
Jan 5, 2008 2:26 pm
9176
... (You probably know this already but ...) I guess it's worth adding to the other replies that you can use 'open' to avoid both uses, eg: open Module let v =...
I was looking at the implementation of a stack module here http://caml.inria.fr/pub/docs/oreilly-book/html/book-ora131.html#toc183 and tried to use a list to...
... hi, you have to return the modified list pop modifies the data structure and retrieves the last element let pop s = function ... let stack = create () in ...
Hi Peter, thanks for trying to help me. See me comments below. ... The problem here is that the user of the interface is exposed to the internal representation...
Hello, Let it put me this way: Peter's code is OK, but your interface is wrong. You could "fix" Peters code to fit your interface by replacing let push stack d...
... Why do you say this? You should probably read something about persistent data structures, eg: http://en.wikipedia.org/wiki/Persistent_data_structure ...
... and notice that if you have this in your implementation: type 'a t = 'a list ref you can hide the implementation in the signature: type 'a t sig type 'a t ...
Florent Monnier
fmonnier@...
Jan 6, 2008 3:24 pm
9184
Hi, I've written a new binding, and it works fine in bytecode but I get this error when trying to run the demos in native code: error while loading shared...
Florent Monnier
fmonnier@...
Jan 6, 2008 3:32 pm
9185
Hello, I ran into a similar problem some time ago. If my guess is correct, you are using a -L... directive when compiling your .cmxa ? the problem is that the...
Mathias Kende
mathias@...
Jan 6, 2008 11:25 pm
9186
Hello, I am completely new to Ocaml, having been introduced to it just recently, at a college course, and I have to admit that I find it a very interesting and...
konrad.siek
konrad.siek@...
Jan 6, 2008 11:53 pm
9187
Hi ! Please what's wrong with this piece of code ? *) let line = ref (Stream.of_string "") let file_names = ref (List.tl (Array.to_list Sys.argv)) let rec...
Streams are mutable. You are closing the channel, which the stream still depends on. On the recursive call, you try to use that stream, but its underlying...
On Sun, 6 Jan 2008 20:00:42 -0500 ... Of course you are right ! Thanks a lot, will keep the channel open until the stream isn't emptied. Regards, Fabrice...
Hi, as you probably know C code can be manipulated with tools like cpp and m4, for example through '#define' statements or embedded special symbols like...