Ok, I think I've understood what you mean. Anyway, I've always found that way in order to treat the empty case in ocamlyacc which is not to specify any symbol....
5152
Radu Grigore
radugrigore
Dec 3, 2005 3:56 pm
... BTW, ocamlyacc is written in C so don't blame OCaml for its bugs ;) __________________________________________ Yahoo! DSL – Something to write home...
5153
Stalkern 2
stalkern2
Dec 5, 2005 1:51 pm
... I thought that the parser needed to meet a stop point at a higher level before switching to another rule. My fault. And I did not even know that a rule can...
5154
Giuseppe Lo Brutto
bit2rate
Dec 5, 2005 4:12 pm
... Let's say that it's incomplete and really essential :-)...
5155
Mark White
ythls
Dec 5, 2005 5:03 pm
I'm trying to understand OCaml classes. Why does the following method: method make_image ~image_height ~image_width = let image = GlPix.create `ubyte...
5156
William D. Neumann
scoey13
Dec 5, 2005 5:20 pm
... The problem is that in OCaml, methods are not allowed to have a polymorphic type, which is what you have here. I'm not too up on objects in OCaml, but you...
5157
Martin Jambon
BioMim
Dec 5, 2005 6:57 pm
... I don't know the full example, but it seems that you are in this situation: # class c x = object method x = x end;; Some type variables are unbound in this...
5158
Martin Jambon
BioMim
Dec 5, 2005 7:02 pm
Oh, and don't forget the ocaml-tutorial wiki: http://www.ocaml-tutorial.org/objects Martin -- Martin Jambon, PhD http://martin.jambon.free.fr Store and share...
5159
swarat_c
Dec 5, 2005 11:31 pm
Greetings, I have an elementary question about sets in Ocaml. In a program analyser I am planning to write in Ocaml, I need to store a large number of sets of...
5160
Jon Harrop
harropjon
Dec 6, 2005 12:30 am
... The built-in set implementation does exactly this. In particular, as a functional data structure, it shares nodes with previously defined sets as well, and...
5161
swarat_c
Dec 6, 2005 5:42 am
Jon, thanks a ton. -Swarat ... sets as...
5162
Mark White
ythls
Dec 6, 2005 10:49 am
Thanks William and Martin; I hadn't realised classes handle polymorphic definitions slightly differently, so that's very helpful. I'm still not quite sure why...
5163
Martin Jambon
BioMim
Dec 6, 2005 8:38 pm
... [< Gl.format > `rgb ] means: the type must have at least (>) one constructor `rgb and at most (<) the constructors of Gl.format. This might work: class...
5164
Florent Monnier
fmonnier@...
Dec 6, 2005 10:08 pm
Hello, I'm trying to install lablgl, but I get this error: ocamlmktop -I . -I +labltk -I ../../src -o lablgltop \ labltk.cma lablgl.cma togl.cma Error on...
5165
Stalkern 2
stalkern2
Dec 7, 2005 8:07 am
... OK, I'll tell the mantainers about that issue then. Ernesto...
5166
Stalkern 2
stalkern2
Dec 7, 2005 9:03 am
Hello, I'm looking for the mantainers of the Ocaml manual. there was recently a discussion in the Ocaml Beginners' mailing list and somebody (Radu Grigore)...
5167
roparzhhemon
Dec 7, 2005 12:41 pm
Hello all, I've got a function f on the integers (f:int->int) that is computed quite fast on most values but can be very long on a few ones, so I should like...
5168
Richard Jones
rwmjones
Dec 7, 2005 1:20 pm
... After print_string, add: flush stdout. Alternately, use printf %!, as in: open Printf (*...*) printf "computed %d\n%!" i Rich. -- Richard Jones, CTO Merjis...
5169
roparzhhemon
Dec 8, 2005 8:43 am
Hello all, I've read and re-read many times the Ocaml manual on libraries and object files, but I still can't accomplish the most basic thing... I've got a...
5170
Giuseppe Lo Brutto
bit2rate
Dec 8, 2005 9:19 am
... It seems that when you load a module, it and the ocaml-top-level doesn't share the same enviroment. Since this you have to add the name of the module in...
... Ok, thanks -- so to check my understanding, this value: - Can only be used in a type context where the constructor `rgb is allowed - Will not bind in a...
5173
roparzhhemon
Dec 8, 2005 2:56 pm
Hello all, here is how I implement currently a generic recursive function that rememebers the values computed already : let iterator_with_memory f x0= let...
5174
Brian Hurt
bhurt42
Dec 8, 2005 3:12 pm
All the following advice is for Linux/unix. I don't do windows. ... Let's change this to: let _ = print_string "Hello, world!\n";; So we see it actually do...
5175
Brian Hurt
bhurt42
Dec 8, 2005 3:21 pm
... Try replacing 'action139; and 'action239; with '_': let iterator_with_memory f x0= let a_hashtbl_for_the_iterator=Hashtbl.create(100) in let _...
5176
garykpdx47408
Dec 8, 2005 3:26 pm
I haven't been able to run ocamlopt, yet. It seems to be something to do with the assembler. Here's the message: C:\...92;ocamlopt myexpr.ml -o myexp.exe 'ml' is...
5177
Radu Grigore
radugrigore
Dec 8, 2005 3:38 pm
... Is this what you try to do? (* Return f(f(...(x)...)), with [n] applications of [f]. *) let rec ntimes f x = function 0 -> x ... If so, there's nothing to...
5178
Brian Hurt
bhurt42
Dec 8, 2005 3:58 pm
... No, he's trying to do something interesting. The type of the function is: ('a -> 'a) -> 'a -> int -> 'a Or perhaps a better type would be: ('a -> 'a) ->...
5179
William D. Neumann
scoey13
Dec 8, 2005 4:01 pm
... Or you can replace them with '()': let iterator_with_memory f x0 = let a_hashtbl_for_the_iterator=Hashtbl.create(100) in let () =...
5180
Lars Nilsson
larsn66
Dec 8, 2005 4:05 pm
... The Readme.windows.txt document in O'Caml tells you where to find it. Lars Nilsson...