Search the web
Sign In
New User? Sign Up
ocaml_beginners · Ocaml Beginners
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 2705 - 2734 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
2705
When I read a program written by someone else I find that seeing the inferred types helps. So I use "ocamlc -i". But this does not show the types of locally...
Radu Grigore
radugrigore
Offline Send Email
Oct 1, 2004
7:39 am
2706
... You can use the -dtypes compiler flag, though its output isn't very easy to read. It would be nicer if it displayed the results in terms of type ...
Issac Trotts
issac_trotts
Offline Send Email
Oct 1, 2004
7:56 am
2707
... (similar to Issac's way, but ...heuristically :-)) ) It happens to me to put a checkpoint by casting a item to a type, and watch for complaints. # let fact...
Stalkern 2
stalkern2
Offline Send Email
Oct 1, 2004
8:06 am
2708
... Thanks. It really does look ugly. And I don't know emacs :( (the manual says that it can be parsed by a set of emacs macros that come with the OCaml...
Radu Grigore
radugrigore
Offline Send Email
Oct 1, 2004
8:14 am
2709
... Hello, you might be interested by the -dtypes option of ocamlc: it generates a file.annot file with "detailed type informations" - as says the manual. ...
Virgile Prevosto
virgilepr
Offline Send Email
Oct 1, 2004
8:31 am
2710
... It's made for been read by inteligent editor. The ocaml mode is able to do it....
Remi Vanicat
dl_ens
Offline Send Email
Oct 1, 2004
11:01 am
2711
I'm trying to implement this algorithm: http://www.jwz.org/doc/threading.html It's essentially an imperative / OO algorithm which makes it kind of hard to...
Richard Jones
rwmjones
Offline Send Email
Oct 12, 2004
12:15 pm
2712
... The pointer. In ocaml everything that is not an int (or something that is represented internaly by an int, as char, bool, and constructor with no...
Remi Vanicat
dl_ens
Offline Send Email
Oct 12, 2004
5:06 pm
2713
... Something like this, perhaps? type id = string type message = { subject : string; message_id : id; references : id list; } type container = { mutable...
Alwyn
david_alwyn
Offline Send Email
Oct 12, 2004
5:29 pm
2714
... The most important part of that algorithm is part one. This is a dumb/straightforward/fast tree reconstruction from incomplete information. If you use the...
Radu Grigore
radugrigore
Offline Send Email
Oct 12, 2004
7:47 pm
2715
... One of them is in [Forest.link]: I forgot to update the children list of [nb]. Another point that might confuse you is that I assumed a reverse order for...
Radu Grigore
radugrigore
Offline Send Email
Oct 13, 2004
5:14 am
2716
I downloaded the OCaml package from http://caml.inria.fr/ocaml/distrib.html and installed it...by accident without installing XCode first (I had already...
Eclipse
soleclipse
Offline Send Email
Oct 14, 2004
6:15 pm
2717
... It installs the files in a number of locations: The executables go in /usr/local/bin; the libraries go in /usr/local/lib/ocaml/*; the man pages in...
William D. Neumann
scoey13
Offline Send Email
Oct 14, 2004
7:26 pm
2718
... I think it instals itself by default in /usr/local/bin. Have you looked there? I installed my version via Fink, so it resides in /sw/bin. Alwyn...
Alwyn
david_alwyn
Offline Send Email
Oct 14, 2004
7:29 pm
2719
... Where did you set the prefix to? If you're not totally married to compiling vanilla OCaml by yourself, I would recommend using either Fink's version of...
Blair Zajac
blair_z
Offline Send Email
Oct 14, 2004
10:22 pm
2720
Thanks everyone. I found it in /usr/local/bin as you suggested. I did get command not found on ocaml. Then when I tried rehash I got command not found again!...
Alessandro Gagliardi
soleclipse
Offline Send Email
Oct 15, 2004
10:25 pm
2721
... If you're using csh: setenv PATH /usr/local/bin:${PATH} If you're using bash: export PATH=/usr/local/bin:$PATH Note that there are no spaces before and...
Alwyn
david_alwyn
Offline Send Email
Oct 15, 2004
10:34 pm
2722
... Thanks. This code was very helpful indeed. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ -...
Richard Jones
rwmjones
Offline Send Email
Oct 18, 2004
2:06 pm
2723
When I run the following simple code, I get the Exception: Sys_error "Bad file descriptor". let aux l i1 = let s = input_line i1 in s::l let f fname = let i =...
davidchen_25
Offline Send Email
Oct 19, 2004
3:35 am
2724
... ^^^^ This expression doesn't "return l1" as you might be thinking, thus the ... is always called. 'f1' is an infinite loop. Rich. -- Richard Jones....
Richard Jones
rwmjones
Offline Send Email
Oct 19, 2004
7:39 am
2725
Thank you for your comment. Here I revised it. Now it works well and also is tail called. let aux l i1 = let s = input_line i1 in s::l let f fname = let i =...
David Chen
davidchen_25
Offline Send Email
Oct 20, 2004
1:38 am
2726
Hi, I thoroughly enjoy and take advantage of the compile-time type safety in Objective Caml. It gives me a good idea that my program is "correct," so I don't...
gsherman27
Offline Send Email
Oct 27, 2004
12:59 am
2727
... Whenever I call a function I look at all the exceptions that might be thrown. This is easy for library functions because the exceptions are documented. In...
Radu Grigore
radugrigore
Offline Send Email
Oct 27, 2004
6:59 am
2728
... [...] ... In fact there is no easy way to find automaticly which exception can be raised because of higer order function : let g f x = f x may raise any...
Remi Vanicat
dl_ens
Offline Send Email
Oct 27, 2004
9:44 am
2729
Hello all, I have the following in my .mli file: <--- (nrp_thread.mli) (** Helper function to make sure we don't leak a mutex lock in case of exceptions. *) ...
janne_hellsten
Offline Send Email
Oct 28, 2004
1:16 pm
2730
... $ ocamldoc -I +threads nrp_thread.mli does it Ernesto...
Stalkern 2
stalkern2
Offline Send Email
Oct 28, 2004
10:43 pm
2731
... Thank you! It worked. Why +? I didn't find mention of it in the documentation nor Ocamldoc command line help. ciao, janne...
janne_hellsten
Offline Send Email
Oct 29, 2004
5:23 pm
2732
... That's the OCaml convention for specifying directories relative to the standard library directory. See page 146 of the OCaml 3.08 manual for more detail. ...
William D. Neumann
scoey13
Offline Send Email
Oct 29, 2004
5:33 pm
2733
Where can I find a clear description of how OCaml executes code. In particular, I want to understand when functions with several values are evaluated - is the...
andrew cooke
andrew@...
Send Email
Nov 3, 2004
7:03 pm
2734
... No, for example # let f1 x = x;; val f1 : 'a -> 'a = <fun> # let f2 x = -x;; val f2 : int -> int = <fun> # let example1 a b x = let a' = f1 a in let b' =...
Issac Trotts
issac_trotts
Offline Send Email
Nov 3, 2004
7:56 pm
Messages 2705 - 2734 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2007 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help