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?...
3537
Jonathan Bryant
jonboy3182
Jun 1, 2005 3:53 pm
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...
3538
Jon Harrop
harropjon
Jun 1, 2005 4:22 pm
... Not directly, AFAIK. There are two alternatives that I can think of: Obviously you could write a dispatch function: let lookup_function = function ...
3539
Jonathan Bryant
jonboy3182
Jun 1, 2005 5:30 pm
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...
3540
Jon Harrop
harropjon
Jun 1, 2005 5:51 pm
... 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 ...
3541
Jonathan Bryant
jonboy3182
Jun 1, 2005 6:01 pm
I've thought about that, but the problem is that I need multiple "plugins" to be loaded at the same time. Because they are compiled separately, the...
3542
Remi Vanicat
dl_ens
Jun 1, 2005 6:30 pm
... 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...
3543
rahul thathoo
rahulthathoo...
Jun 2, 2005 4:39 am
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...
3544
Oliver Bandel
oliver@...
Jun 2, 2005 4:32 pm
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...
3545
Steven Johnson
steven_johnson
Jun 2, 2005 5:22 pm
... 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...
3546
Jonathan Bryant
jonboy3182
Jun 2, 2005 5:47 pm
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,...
3547
james woodyatt
dr_strychnine
Jun 2, 2005 5:59 pm
... Most object-oriented programming languages require you to use the object system wherever and whenever any single one of the typical aspects of...
3548
Karl Zilles
kzilles
Jun 2, 2005 6:08 pm
... 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...
3549
Jonathan Bryant
jonboy3182
Jun 2, 2005 6:33 pm
Mutually recursive modules can be defined within a single compilation unit. The syntax is module rec AModule : sig ... end = struct ... end and BModule : sig ...
3550
Oliver Bandel
oliver@...
Jun 2, 2005 7:16 pm
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...
3551
Martin Jambon
BioMim
Jun 2, 2005 7:23 pm
... This is an experimental and relatively recent extension of the language (section 7.9 of the manual for OCaml 3.08) ... -- Martin Jambon, PhD ...
3552
Danny Yoo
dyoo@...
Jun 2, 2005 8:41 pm
... Here you go: http://cristal.inria.fr/~xleroy/publi/recursive-modules-note.pdf Best of wishes!...
3553
Jonathan Bryant
jonboy3182
Jun 2, 2005 8:51 pm
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...
3554
Oliver Bandel
oliver@...
Jun 2, 2005 10:36 pm
... Ah, OK, I see. :) Ciao, Oliver...
3555
Jon Harrop
harropjon
Jun 3, 2005 3:31 pm
... Good pun, dude! ;-) -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. Objective CAML for Scientists ...
3556
Jon Harrop
harropjon
Jun 3, 2005 3:50 pm
... 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 ...
3557
dominiksm@...
Jun 3, 2005 4:42 pm
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...
3558
Jonathan Bryant
jonboy3182
Jun 3, 2005 4:48 pm
Maybe I'm just old school, but use Emacs (Tuareg mode) or Vim... :)...
3559
Remi Vanicat
dl_ens
Jun 3, 2005 5:24 pm
... 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) ... ...
3560
james woodyatt
dr_strychnine
Jun 3, 2005 5:53 pm
... 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...
3561
dominiksm@...
Jun 3, 2005 7:55 pm
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...
3562
Frederic van der Plan...
fplancke2001
Jun 3, 2005 8:04 pm
... I have yet to find the pun... Any hint, please ? Frédéric...
3563
Karl Zilles
kzilles
Jun 3, 2005 8:17 pm
... "There are usually some exceptions"....
3564
Steven Johnson
steven_johnson
Jun 6, 2005 12:35 am
... 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...
3565
Steven Johnson
steven_johnson
Jun 6, 2005 12:39 am
... 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...