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...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 257 - 286 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
257
Hello to everybody I've been studying the beautiful example of XML-oriented parsing written by Nicolas Cannasse and called XML Light. ... Code ... 1) Check out...
stalkern2
Offline Send Email
May 2, 2002
10:31 am
258
A couple of questions about classes: (1) What is the difference between a class with all virtual methods and a class type? Are they interchangeable? (2) Also,...
bwv211mail
Offline Send Email
May 3, 2002
1:03 am
259
I tried the profiling example in the new Ocaml book, p.281ff. But I am not getting any information that seems worthwhile. I hope someone can help me... $ cat...
bwv211mail
Offline Send Email
May 3, 2002
5:16 am
260
... There is little difference between the two. you can inherit from one, not from the others. but as you can do a class ['a] bar = object(_: 'a #foo) ... and...
Remi VANICAT
dl_ens
Offline Send Email
May 3, 2002
6:01 am
261
Thanks for the reply. Just as a followup, is there an internal difference (more memory use, etc) between: class foo () = ... class bar ... = object ......
bwv211mail
Offline Send Email
May 3, 2002
6:42 am
262
... I get: % cumulative self self total time seconds seconds calls us/call us/call name 96.30 0.26 0.26 200004...
Gerd Stolpmann
info@...
Send Email
May 3, 2002
12:43 pm
263
In order to debug my doubly linked list implementation (and learn how caml's pretty-printing facility works), I wrote a function <p> <code> ...
s guy
sguy_yugs
Offline Send Email
May 3, 2002
12:54 pm
264
That does look reasonable. I am running FreeBSD 4.5-STABLE and using the gprof that comes with the distribution. Is anyone successfully profiling their OCaml...
bwv211mail
Offline Send Email
May 3, 2002
4:53 pm
265
... I get the same results you do (i.e. the wrong ones), also on 4.5-STABLE with the shipped gprof and OCaml 3.04 from the ports....
Henrik Motakef
henrik.motakef@...
Send Email
May 3, 2002
5:20 pm
266
... Does anyone know if this whether this is a problem with the OCaml distribution or with gprof?...
bwv211mail
Offline Send Email
May 3, 2002
8:08 pm
267
Hi All, I have a type type testTyp = First | Second | Third | Umpteenth Is there a library function with the following behavior? f (First) = Second f (Second)...
magesh_kannan
Offline Send Email
May 6, 2002
6:19 pm
268
... You can trick by doing ( only if your constructors does not have any parameters ) : let f x = (Obj.magic ((Obj.magic x : int) + 1) : 'a) but that won't...
Warp
ncannasse
Offline Send Email
May 6, 2002
6:58 pm
269
... This function wouldn't work in the general case, e.g : type t = First of string | Second of int | ... ... If you just need a circular counter, you can...
Martin Jambon
m.jambon@...
Send Email
May 7, 2002
8:01 am
270
I'm working through some of the exercises available in the O'Reily book that is available online at <http://caml.inria.fr/oreily-book/>. Here is what I came up...
Matt Armstrong
matt@...
Send Email
May 8, 2002
7:04 pm
271
Hello, I got a problem, that only occurs in compilation and not in the toplevel (but the toplevel prints warnings about the type (should be unit)). Here is the...
Oliver Bandel
oliver@...
Send Email
May 8, 2002
8:55 pm
272
... @ is O(n), so the whole function is O(n^2). ... It _is_ smart enough! ... Why not ... ? ... One optimization would be to accumulate by "head :: accum"...
Gerd Stolpmann
info@...
Send Email
May 8, 2002
9:28 pm
273
... I guess you entered two phrases, ending every phrase with ";;". ... Either put ";;" after the "let rec" definition, or write let _ = charlist_of_string...
Gerd Stolpmann
info@...
Send Email
May 8, 2002
9:35 pm
274
... Hi, I am new to this list and it was written that this is the place for not(yet)-caml-gurus, so I'll ask a question, even though some will maybe find it is...
Nicolas Barbulesco
nbarbulesco
Offline Send Email
May 8, 2002
10:06 pm
275
... Good to know. ... Also good to know! :-) Actually I finally realized you can do it in this more efficient way: let rec merge_i a b = match (a, b) with ...
matt_arms
Offline Send Email
May 9, 2002
4:17 am
276
Le Wed, 8 May 2002 22:52:34 +0200 (MET DST) ... You forgot to end the definition of charlist_of_string with two semicolons. By the way, your code is...
Michel Quercia
michel.quercia@...
Send Email
May 9, 2002
7:20 am
277
... Hi, and welcome to the group. let _ = expression ;; is just a way to say: "evaluate expression and ignore the result" As far as I know, "_" alone has no...
giangiammy
Offline Send Email
May 9, 2002
7:25 am
278
... I'm now using the name "xml mild" for the sake of putting the code online. You can download xml mild, that is not a library on its own but rather an ...
stalkern2
Offline Send Email
May 9, 2002
8:12 am
279
Let me quote a previous message on this list ... Regards Ernesto...
stalkern2
Offline Send Email
May 9, 2002
10:34 am
280
Hello, I want to play with ocamldap, but compiling the latest version (0.3) trigger a syntax error on a simple parser: philou@philou:~/src/ocamldap-0.3$ make ...
Philippe Strauss
philou@...
Send Email
May 10, 2002
11:08 am
281
oops, forgot to mention my setup: current debian sid, with the following caml packages: philou@philou:~$ dpkg -l | grep -i caml ii camlimages 2.00-1...
Philippe Strauss
philou@...
Send Email
May 10, 2002
11:17 am
282
... i don't even know what ocamldap is but did you try with camlp4? # #load "camlp4o.cma" before any [< >] expression. Bye Ernesto...
stalkern2
Offline Send Email
May 10, 2002
12:57 pm
283
Hello to everybody I'm wondering whether in Ocaml one can roll up a string:string and then use a command that takes that string as a command, something like:...
stalkern2
Offline Send Email
May 10, 2002
3:29 pm
284
... # let skryflys l lys = List.map (Printf.fprintf l "%s\n") lys; close_out l;; Toplevel input: # let skryflys l lys = List.map (Printf.fprintf l "%s\n") lys;...
Johann Spies
jspies@...
Send Email
May 14, 2002
2:10 pm
285
... List.iter is what you need here. -- Rémi Vanicat vanicat@... http://dept-info.labri.u-bordeaux.fr/~vanicat...
Remi VANICAT
dl_ens
Offline Send Email
May 14, 2002
2:51 pm
286
... So, List.map returns a new list. One way to get rid of a value you're not interested in is to do this: let skryflys l lys = let _ = List.map...
Matt Armstrong
matt_arms
Offline Send Email
May 14, 2002
3:11 pm
Messages 257 - 286 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