On Sun, Jan 29, 2006 at 02:47:39PM +0100, Oliver Bandel wrote: [...] ... [...] Maps of Maps? Ciao, Oliver...
Oliver Bandel
oliver@...
Feb 1, 2006 7:38 pm
5367
Sorry for what I know must be a newbie question. I'm trying the simplest program I can for calling ocaml from C++. Can someone help me out with the link error?...
Hi, I have worked a find-union data structure. Besides the standard pointers and counters each node of this data structure may possess a user-defined data...
Hi, I think I have figured it out. Basically what I want is to create an ADT. After reading up some more I have come to the conclusion that the correct...
hello all, this is again on my favorite theme : recursive functions and memorizing of values ... Remember the problem was to make the interpreter remember...
I have suddenly started having a strange problem with compiling, and it happens even with a one line program. If I have a one line program saved in a file...
... It happened to all of us. The first time it's a little disturbing :-) See http://www.ocaml-tutorial.org/common_error_messages Martin -- Martin Jambon, PhD ...
... Thanks for the fast response. I'm glad to find out it was so simple! I guess I never encountered it before because I had always assigned something to the...
... I see what you are trying to do (by the way, some indenting and whitespace would greatly improve the readability of your example). I don't think it is...
Thank you for your clear answer, it solves my problem completely. I'll have to learn some camlp4... Just another question : with your method (if I understood...
hello all, the output in the interpreter will tell the story : Objective Caml version 3.09.0 # #load"camlp4o.cma";; Camlp4 Parsing version 3.09.0 # let gram =...
you need to #load "pa_extend.cmo" before the instruction. Look at section 1.2 of the tutorial. ... Andres Varon Computer Science Department Graduate Center,...
hello all, I followed step by step the Camlp4 tutorial until section 3.8. Here there is a command like this : EXTEND expr: LEVEL "simple" [ [ x = LIDENT -> fun...
... The following code can be compiled without an error: let x : int list ref = ref [];; The '_a means it's not a universal type (like 'a), but just a type...
... Yes ... Sure. If you don't want the function to be recursive, you would need another keyword though. I suggest you define a keyword which does not imply...
... The name changed from loc to _loc in the middle of the 3.08.x series. You can control this with the -loc option. In order to understand where it comes...
Hello, can represent me someone the solution of the following task: To implement a class must for the representation of a concatenated list, which can take up...
bonita (sent by Nabbl...
lists@...
Feb 6, 2006 9:19 am
5383
... Hash: SHA1 Hello, I want to define a typsafe set of records to use it as translation-table, pE: type foo_or_bar should be number:1; val:20; label:"foo" or ...
Andreas Romeyke
romeyke@...
Feb 6, 2006 1:50 pm
5384
Hello, I'm not sure I understand what you want to do, but here is a first suggestion : type foo_or_bar=Foo |Bar;; let number_of_foo_or_bar=function...
... If you want to define your table as a constant *value*, without a closely restricted type, here is a way (array of records): let foo_or_bar = [| {number:1;...
... Hash: SHA1 Hello, ... Yep, that is the right direction... type foo = {number: int; value:int;label:string};; type bar = {number: int;...
Andreas Romeyke
romeyke@...
Feb 6, 2006 3:51 pm
5387
Hello, I've written code inside one compilation unit, that has a some of functions. Some of them I want to have separated and use as parameters for the other...
Oliver Bandel
oliver@...
Feb 6, 2006 5:00 pm
5388
Following the example from the oreilly-book I tried this: (* starting from here let c = ref 0 let reset = function () -> c := 0 let newsymb = function s ->...
Oliver Bandel
oliver@...
Feb 6, 2006 5:33 pm
5389
... Ah, I think I see now ... The short answer to your question is : no, there is nothing "easy, homemade, automatic" in Caml to do what you want. There are a...
... it is customary to write the "in" at the end of the line and avoid indenting subsequent lines, thus: let closure = function () -> let c = ref 0 in let...
Hello all, I've got a problem again with a command in the CamlP4 tutorial : if I type the command in section 3.6 (below) I get a compound error message...
... The quotations are the things of the form <:quotation_expander< ... >> This general syntax is supported by the camlp4 parser, in addition to the regular...
... I two issues here: 1) putting several kinds of objects into the same type: that's something you can do very naturally in OCaml using sum types (variants). ...
Have a system: Image SLES9-1 Revision 7 Kernel = Linux 2.6.5-7-smp #1 SMP Thu Jan 27 09:19:29 UTC 2005 i686 i686 i386 GNU/Linux ocaml-3.09.1-1.rhfc4.i386.rpm ...
ibyte8bits (sent by N...
lists@...
Feb 6, 2006 11:29 pm
5395
Hi everybody, I am in the process of writing the documentation for a small project using ocamldoc (html and latex output) and I am wondering if there is a ...