Hi, all In the toplevel, we can use "#trace" to trace the stack of some functions. However, if we want to trace the method of an object, how shall we do this?...
Is there a way to dynamically get functions from their names? For example, if I had a function (some_function -> int -> int), would it be possible somehow to...
... Not directly, AFAIK. There are two alternatives that I can think of: Obviously you could write a dispatch function: let lookup_function = function ...
Actually, I am looking to make a program of mine support plugins, of a sort. I would take a library and load it dynamically, but I would need to know what...
... There is an obvious conflict between static typing and this kind of dispatch which is, essentially, why this isn't too easy in OCaml. I put plugins in one ...
... Note also that when a cmo is loaded, the toplevel value are evalutated. They can add sommething (like for example a function) into an hashtable for...
Hi. I am working on dealing with recursive XML Schemas. Now, I have a system(written in ocaml) which has a basic tree type data structure to see the XML schema...
Hello, look at this: I have a compilation unit and define two modules inside it. How can I have access to each module's exported funtion from each other...
Oliver Bandel
oliver@...
Jun 2, 2005 4:32 pm
3545
... As someone who is still reading thru the OCaml PDF, could someone expand on these comments? ie, Is this comment reflective of deficiencies in OCaml's...
I can't comment on the reflection aspect (obviously: I asked the question!), but as far a OCaml v. Java, I find that OCaml is much more graceful and succinct,...
... Typical OO languages make you use objects to solve all your abstraction problems. Ocaml offers higher order functions and modules which are often a better...
Mutually recursive modules can be defined within a single compilation unit. The syntax is module rec AModule : sig ... end = struct ... end and BModule : sig ...
Hello, ... Is this a new feature? Didn't found "module rec" in the Documentation. Have OCaml 3.08.0, but the old documentation of OCaml 3.06. ... Where to find...
Oliver Bandel
oliver@...
Jun 2, 2005 7:16 pm
3551
... This is an experimental and relatively recent extension of the language (section 7.9 of the manual for OCaml 3.08) ... -- Martin Jambon, PhD ...
... Here you go: http://cristal.inria.fr/~xleroy/publi/recursive-modules-note.pdf Best of wishes!...
Danny Yoo
dyoo@...
Jun 2, 2005 8:41 pm
3553
I'm not sure if this got through, so I'm sending it again. If it pops up twice, I'm sorry! Mutually recursive modules can be defined within a single...
... Read the sources to the OCaml compilers. There are very fewer uses of objects in there too. I've only used objects a handful of times over the past two ...
Hello I tried to set up the Cameleon, an Ocaml IDE http://savannah.nongnu.org/projects/cameleon/ http://pauillac.inria.fr/~guesdon/Tools/cameleon/cameleon.html...
dominiksm@...
Jun 3, 2005 4:42 pm
3558
Maybe I'm just old school, but use Emacs (Tuareg mode) or Vim... :)...
... Note that cameleon 3.06 can also compile with more recent lablgtk (well at least the cameleon debian package have been compiled with lablgtk 1.2.7) ... ...
... At first, I was worried... I generally don't enjoy puns very much. I almost never write puns on purpose, and I didn't see the pun until after I stared at...
Hello Problem is solved. Thanks to all who helped. ... Can be. But it went on without risk with 1.2.6 too. ... Exactly. Sometimes the solution for a difficulty...
dominiksm@...
Jun 3, 2005 7:55 pm
3562
... I have yet to find the pun... Any hint, please ? Frédéric...
... Well, I see this as a failing of Java-the-language rather than object models in general. In particular, a good generics system would do wonders towards...
... On this topic: I really want to try this out, but I have so far been unable to get it it to work... probably because I'm limited to using a Windows machine...