Hello everyone: I have a (beginner, I suppose) problem with using the postgresql-ocaml-1.4.1 library. I compiled and installed it (as well as PostgreSQL...
2779
Richard Jones
rwmjones
Nov 9, 2004 1:57 pm
... There certainly seems to have been a problem when building the postgresql.cma file. It doesn't define all the C libraries that it actually needs. The...
2780
Alwyn
david_alwyn
Nov 9, 2004 7:58 pm
... Thank you; this led me to Garrigue's publications page at: <http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/papers/> I have another question: In Standard ML...
2781
gilles_dubochet
Nov 10, 2004 12:44 pm
Hello everyone: I'm sorry for asking two (beginner) question in such a short time, especially long ones like this one: I am writing an interpreter for a...
2782
Remi Vanicat
dl_ens
Nov 11, 2004 5:08 pm
... Well, in the 3 said language, construcor are mainly tag that are put in the header of the object, and type declaration for type safety. Then one can decide...
2783
Remi Vanicat
dl_ens
Nov 11, 2004 5:11 pm
... [....] ... Well, this look a lot like a bug. You should ask to the O'Caml team....
2784
TBraibant
wisthler_thrawn
Nov 13, 2004 7:18 pm
Hello Everybody I wonder about something, not important at all, but rather strange to me ... In the pervasive module, there is a function called lxor : int ->...
2785
William Neumann
scoey13
Nov 13, 2004 7:25 pm
... It's just because it was defined as an infix operator, like the rest of the integer arithmetic functions. William D. Neumann "You've got Rita Marlowe in...
2786
Peter C. Chapin
p482719
Nov 16, 2004 1:25 pm
Hello! I notice OCaml uses a right-to-left order of evaluation in all of the cases I've tried so far. For example, this is evidenced in (print_string "Hello";...
2787
Jerry Charumilind
jcharum
Nov 16, 2004 2:18 pm
... The order of evaluation is not guaranteed in this case. (+) is a function, and in general, the order of evaluation of the arguments to a function is...
2788
Peter C. Chapin
p482719
Nov 16, 2004 2:43 pm
... Okay, I'm fine with that. ... I'm a bit confused by that section. They show the following example # let new_print_string s = print_string s; String.length...
2789
Jerry Charumilind
jcharum
Nov 16, 2004 3:04 pm
... So it does! It appears to be an error in the text....
2790
Brian Hurt
bhurt42
Nov 16, 2004 3:26 pm
... Right to left is more natural for C speakers. C did right to left to handle variable length argument lists. That way the arguments known to exist would...
2791
Alwyn
david_alwyn
Nov 16, 2004 4:50 pm
... That may well be so, but it is important to note that the C (and C++) standards give no guarantee about the order of evaluation of (sub)expressions in the...
2792
Remi Vanicat
dl_ens
Nov 17, 2004 12:17 pm
... In fact, I believe the original reason is for simplification in the ocaml bytecode interpreter (or compiler) : when one evaluate f x y z e with f define as...
2793
brice_laurencin
Nov 22, 2004 10:43 am
I am trying to read a text file and put each word into a String list (of words :) ). I want to put the comas, dots, ... away, and keep only the words as...
2794
Richard Jones
rwmjones
Nov 22, 2004 11:28 am
... There are a couple of modules which can help you here. The Pcre module (http://www.ai.univie.ac.at/~markus/home/ocaml_sources.html) gives you...
2795
Stalkern 2
stalkern2
Nov 22, 2004 11:30 am
... $ ocaml # #load "str.cma";; # Str.split (Str.regexp "[^a-zA-Z]+") "Hello, world!";; - : string list = ["Hello"; "world"] Otherwise, you can go for the...
2796
Richard Jones
rwmjones
Nov 22, 2004 11:52 am
... Of course I mean: let words = Pcre.split ~pat:"92;\W+" str Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ ... Merjis Ltd....
2797
Tony Edgin
tonyedgin
Nov 23, 2004 4:00 am
When I try to do type r1 = {i1 : int; i2 : int; f : float} type r2 = {i1 : int; i2 : int; fa : float array} let o = {i1 = 0; i2 = 1; f = 0.} ;; Ocaml tells me...
2798
Radu Grigore
radugrigore
Nov 23, 2004 9:10 am
... Records do not introduce a different namespace (unlike classes/modules). In the same namespace the rule is that later bindings override earlier ones: this...
2799
Richard Jones
rwmjones
Nov 23, 2004 10:13 am
... As another reply pointed out, the symbols i1, i2, f and fa exist in the same namespace. You can use a module if you want to introduce a new namespace, as...
2800
Normand Leclerc
tishodoitis
Nov 23, 2004 7:44 pm
Hi, I am new to Ocaml, used it a bit two years age and want to get back at it but encounter real difficulties to set it up conveniently. I have two questions. ...
2801
Christophe TROESTLER
Christophe.Troestler@...
Nov 23, 2004 8:17 pm
... I do not know about OcamlWin.exe since I do not use Win$, but you could use instead the tuareg Emacs mode (http://www-rocq.inria.fr/%7eacohen/tuareg/) or...
2802
andrew cooke
andrew@...
Nov 23, 2004 9:56 pm
i use ocaml on win2k with cygwin and it's been absolutely solid. i use emacs to edit the code, with a caml mode grabbed off the net and compile/run directly...
2803
zakaluka
Nov 27, 2004 6:09 am
Hello all, Just joined this group, and it's looking pretty good! In order to use the latest OCaml, I'm trying to compile it from source using: (1) MS Visual...
2804
dmitry grebeniuk
dmitrygrebeniuk
Nov 29, 2004 6:09 am
Hello, zakaluka. z> LINK : fatal error LNK1104: cannot open file '@c:\DOCUME~1 z> \sachin92;LOCALS~1\Temp92;camlrespfba3be' I've made a dumb patch to solve this...
2805
zakaluka
Dec 4, 2004 2:28 am
Dmitry, Thanks a lot for the patch. I was finally able to test it and it fixes my problem. I have been able to successfully compile and install Ocaml 3.08.2...
2806
andrew cooke
andrew@...
Dec 6, 2004 1:00 pm
Hi, I've been using Ocaml for some time now, but have not tried profiling before (iirc). When I run my program after compiling with "ocamlopt -p" I get a...
2807
andrew cooke
andrew@...
Dec 6, 2004 1:50 pm
Ah. I need to run the program for longer to get more sample hits. The sampling is apparently finer on Linux, for some reason. Andrew ... -- ` __ _ __ ___...