Then I guess there is no other solution other than recursive module, because it's actually recursive: Mod1 and Mod2 depends my_struct and hence must see ...
Hello all, let me describe a ocamlmktop-specific compilation problem that I encountered : I have two modules, let's call them A and B, that are completely...
Hi, is it possible to specify a format for floats in string_of_float. E.g. could I say that I want 5 decimals or e.g. an xxe+/-yy notation like 1.56e23? I know...
Am Sun, 4 Feb 2007 22:02:15 -0800 (PST) ... I thought sprintf was not type safe whereas string_of_float was but I found out that sprintf seems to be type safe...
Shalom. I want to make a function that takes argument of type "('a, 'b, 'c) format" (or "... format4"), all following arguments, and silently ignores them all,...
Hello all, According to the latest (3.09) Objective Caml manual, (*) is the multiplication function int->int->int, just like (+) or (/). My toplevel begs to...
Just put a space between the asterisk and the parens: # ( * );; - : int -> int -> int = <fun> Debo ... [Non-text portions of this message have been removed]...
This is due to the syntactic ambiguity, since comment in OCaml also begins with "(*". Extra spacing will help it recognize. # ( * );; - : int -> int -> int =...
... The only dangerous thing with the printf functions is that partial applications used to not work as expected, but it's not the case anymore. If I recall...
Hi, I believe I have good news for you. The Ocaml team is very aware of the issue but because they have said that concurrent GC is out of question for now and...
I have one connected socket and two threads. 1. thread should wait for data, do recv and process the result as soon as any data is available 2. thread should...
Hi OCaml programmers ! Coming from C++ beginner, I try to forget - for a time - oo use and to focus on modules. I hope to reuse "show_array" code : let...
... If you had a library of functions that all worked on a given type, you could use functors. But for a single function, passing the printer as a parameter...
... Hi, You really should use the printf family of functions from the Printf module or from the Format module. ... Here is what I would write: open Printf let...
Karl and Martin, thanks ! ... I'm very interested in reading such previous topics. Maybe I have to search "generic" word ? Please Karl, do you have other clues...
... Basically, whenever you define or use a type that you're going to want to be able to convert into string format, you write a string_of_foo function. For ...
Howdy! I've run into this exact problem. One solution is to compile your program using the cygwin environment, which will give caml a POSIX environment under...
... Yes. However the term "partial application" is more appropriate than "partial evaluation", because it doesn't do anything with the body of the function...
Thank you, John and Martin for the explanations and the examples of partial functions ! They are very useful for me. ... John, I would be glad to buy your book...
Hi, The LISPers threw a programming contest for the upcoming International Lisp Conference (ILC 2007) in Cambridge U.K. The contest is a cute card game called...
Hi ! In order to learn OCaml, I begin to program toy applications. For example : the knight that runs one times on each square of the chess board. Here is the...
2007/2/11, fabrice.marchant <fabrice.marchant@...>: [...] ... [...] ... You fell in the object trap : objects are slower in ocaml than the rest of the...
Thanks Remi ! ... plain I remember that John Harrop's warned me about this. As soon as I fix my debian system that is down today, I rewrite the program in...
I've got some rather large records that contain a bunch of OpenGL vertex information. These also have associated textures. Sometimes these get 're-skinned'...
Grant Olson
olsongt@...
Feb 13, 2007 9:46 pm
7217
... the {md3 with surfaces=new_surfaces} contruct make a copy of the old md3. Then all a record really contain in the "C" meaning of contain, is integer and...