<newsham>
cool, didnt know about the ora book or the tutorial site.
<newsham>
its a weird shorthand...
<newsham>
(that "match expr with .." is used everywhere else, but here its dropped)
<pango__>
yup, I often avoid using the 'function' construct to use an explicit match too (but in some cases it's ok... and you also have to know it exists, when reading other's code ;) )
<flux__>
I find it the most convenient with List.map -like usage
<flux__>
like List.map (function 42 -> 0 | x -> x + 1) data
<pango__>
yes, that's one of those cases where "it's ok"
<pango__>
yet, because it's a long keyword, it's not much less typing than fun x -> match x with ;)
<newsham>
yah, thats where i came across it, in a list fold
<pango__>
hence your two parameters... And depending on the fold direction, the parameters may not be in the right order for the 'function' construct to be natural...
<pango__>
I suppose it's a fold_left here
<pango__>
that's the 'favorable' direction ;)
shawn_ has joined #ocaml
<pango__>
List.fold_right (function None -> fun a -> a | Some x -> fun a -> x :: a) vs List.fold_right (fun e a -> match e with None -> a | Some x -> x :: a)
<newsham>
is there a way to get documentation from within the ocaml environment?
<newsham>
like help(List.assoc) ?
<flux__>
sure, Unix.system "man List";; ;)
Wild_Cat has joined #ocaml
<newsham>
ooh, neat, man pages.
smimou has joined #ocaml
slipstream-- has joined #ocaml
pango__ has quit ["brb"]
pango_ has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
love-pingoo has joined #ocaml
youknow365 has quit [Read error: 113 (No route to host)]
smimou has quit ["bli"]
shans_home has quit ["Leaving"]
finelemon has quit [Read error: 110 (Connection timed out)]
finelemon has joined #ocaml
chessguy has joined #ocaml
jewel has quit [Read error: 110 (Connection timed out)]
pango has quit [Connection reset by peer]
Smerdyakov has joined #ocaml
ppsmimou has quit ["Leaving"]
shawn_ has quit ["This computer has gone to sleep"]
ppsmimou has joined #ocaml
love-pingoo has quit ["Leaving"]
chessguy has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
bzzbzz has joined #ocaml
Wild_Cat has quit ["Leaving"]
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
shawn_ has joined #ocaml
Boojum has joined #ocaml
Snark has quit [Read error: 110 (Connection timed out)]
pango_ has quit ["bbl"]
Boojum is now known as Snark
pango has joined #ocaml
newsham has left #ocaml []
_jol_ has joined #ocaml
joshcryer has joined #ocaml
chessguy has joined #ocaml
_jol_ has quit ["leaving"]
Wild_Cat has joined #ocaml
tennin has joined #ocaml
Wild_Cat has quit []
bzzbzz has quit ["leaving"]
nebosuke2 has joined #ocaml
<nebosuke2>
I have a question about what seems to be a wierd bug with ocamlopt on win xp
<nebosuke2>
I've been trying to build the native version of lablgtk2, but ocamlopt seems to fail in a very strange way when called with a huge number of input cmx files
<nebosuke2>
I modified the lablgtk2 build.ml to run ocamlopt with -verbose to see what's going wrong, and the problem is in this line: + ar rc "lablgtk.a" @C:\DOCUME~1\Dev\LOCALS~1\Temp\camlresp91666e
<nebosuke2>
if I cut down the number of cmx files being fed to ocamlopt it runs just fine
<nebosuke2>
apparently, at some number of input cmx files, ocamlopt attempts to create some intermediate temp files, but when it does, the arguments to ar get mangled
<nebosuke2>
anyone know a way of dealing with this?
Kwisatz- has joined #ocaml
<flux__>
no, but atleast it seems like a genuine bug :-)
<flux__>
maybe it's not too difficult to fix,s eeing that you've debugged it so far
<nebosuke2>
it looks like the only way to possibly work around it is by reducing the number of cmx files fed to ocamlopt in one go
<nebosuke2>
I'm guessing you do it by doing something like -pack'ing the cmx files into a smaller number of intermediate cmx files, and then feeding those intermediate cmx files to ocamlopt
beschmi has joined #ocaml
Snark has quit ["Leaving"]
tennin has quit [Read error: 110 (Connection timed out)]