Hi, I'm having problems using the PXP library, but the question is general enough for anybody I guess. In particular, the problem is with a function (OK,...
Just a tiny update to announce: CocOCaml v0.6 has been released. Two small, but important features have been added to the initial release: * The ability to...
William D. Neumann
wneumann@...
Mar 4, 2003 4:28 pm
865
I want to learn to write CGI programs and would appreciate some advice on where to start, which ocaml libraries to use and where I can find examples of...
Johann Spies
jspies@...
Mar 5, 2003 10:06 am
866
... [...] ... Well, and now I understand, why the bytecodecompiler warns me, that, when using a string-manipulating function, the function should have type...
oliver@...
Mar 6, 2003 1:55 am
867
... [...] ... I'm not sure you ave understood. When you do something as : foo bar xux; wo um da the result of the evaluation of foo bar xux is thrown. It is ...
[...] ... BTW, lots of people use the syntax : let _ = foo bar xux in wo um da instead of ignore, but that's more dangerous, since "ignore" warn you from ...
... Ooops? Why this? I thought, the result of the *last* term is thrown?! Well, hmhhh... ... I have looked into the OCaml-Book (O'Reilley) again today (my...
oliver@...
Mar 6, 2003 4:49 am
870
... Yes, it's true. But you're evaluating a term which is not used, so if you want to discard the result you have to tell the compiler that it's really want...
... Because of my bad english. I meant discarded, not thrown. Bye the way, I would say that the result of the last term is returned, not thrown. Sorry :( [...]...
Hello, I can't see any reference to the "let _ =" construct in the OCaml reference manual. What is its exact meaning? I guess that it executes immediately...
Jérôme Marant
jmarant@...
Mar 7, 2003 1:58 pm
873
... It's very easy : the grammar say that a let is : let PATERN = EXPR and _ is a particular pattern that match everything, without binding any variable. so ...
... OK, you confirm what I understood. Thanks. However, what is the reason for using it in something like: let a b = something in let _ = .... in let _ = .... ...
Jérôme Marant
jmarant@...
Mar 7, 2003 2:32 pm
875
Hi, Yes, use this when you want to call a value-returning function, but without caring about the value returned. The function is executed, and its result is...
DUBOIS Fabrice FTRD/D...
fabrice.dubois@...
Mar 7, 2003 2:34 pm
876
... There is no good reason. It must better to do let a b = something in .... ; .... Well. There might be some warning, but you should not discard them by ...
... [after installing the OCamlNet library] The most important function is the one to get the arguments : Cgi.parse_args () returns a list of (name, value). ...
Hello to everybody I've recompiled a copy of ocaml 3.0.6 with the -pthreads option, and then tried several times to recompile ocamlfind, but both findlib-0.7.2...
... Thanks Martin. It does help indeed! I would like to confirm my understanding of something (which is not strictly ocaml, but rather html): Am I correct in...
Johann Spies
jspies@...
Mar 10, 2003 10:55 am
882
... OK, I don't know how did that work before but NOW it's right. When you use a library that is not ready for ocamlfind and needs a manual ocamlfind install,...
... You don't need to know how it works if you use the Ocamlnet library. (anyway I don't know) The name of the argument of type "file" will simply be...
Martin Jambon
m.jambon@...
Mar 10, 2003 3:06 pm
884
Hello, I have a toy example that does not compile; I would like to interface a 1D Bigarray of integers with C code, using camlidl. ... void linear( int* m,...
francois bereux
francois.bereux@...
Mar 11, 2003 3:32 pm
885
Sorry, there is a typo : read instead ... void linear( [in,ref] int* m, [in,out,length_is(*m),bigarray] int ia[] );...
francois bereux
francois.bereux@...
Mar 11, 2003 3:48 pm
886
... Furthermore, one can get used to let ... in constructs because they force the evaluation order, making it exactly like you write. By the way, brackets also...
Hi James, Thanks for taking the time to write this introduction to monads. I think it's very helpful. I was attracted to ocaml because it's was a well-designed...
... This question wasn't addressed to me, but I'll answer it anyways. The benefits of functional programming all grow out of a common advantage: that it is...
Brian Hurt
brian.hurt@...
Mar 13, 2003 7:51 pm
890
Hello, I have written code for reading in mbox-Mailfiles. While I had experimented and developed, all went well. Then I have changed names globally...
oliver@...
Mar 13, 2003 11:35 pm
891
... ^^^^^^^^^ read_line has type: unit -> string (it doesn't need a channel, it reads from standard input). The function you need is "input_line". The compiler...