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.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 3278 - 3307 of 11540   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
3278
How do I have multiple implementations of a module use one interface (without using Objects). For instance: Interface: Tree Implementations: BinaryTree,...
jonboy3182
Offline Send Email
May 1, 2005
3:50 pm
3279
... Easiest way I've found is this: let insert_list f l = let rec insert f l = [] -> () ... if (List.length l) < 2) then failwith "List too short" else insert...
jonboy3182
Offline Send Email
May 1, 2005
3:59 pm
3280
... Yes, you just need to define a module signature Tree and then modules BinaryTree etc. which adhere to this signature: module type TREE = sig val foo : int ...
Jon Harrop
harropjon
Offline Send Email
May 1, 2005
4:21 pm
3281
... There are a couple of ways you can do this, e.g. functors would work, but they're likely overkill for this. The best way is to probably use module types....
William D.Neumann
scoey13
Offline Send Email
May 1, 2005
4:34 pm
3282
... Well, a couple of others have given good answers, so I won't repeat what they said. You should know, however, that when you are using implicit interfaces...
Matt Gushee
mcgushee
Offline Send Email
May 1, 2005
6:01 pm
3283
... what ... don't ... ml/mli files: That's what I was wondering about (sorry i left that important detail out...). I knew about the toplevel idea, but...
jonboy3182
Offline Send Email
May 1, 2005
7:33 pm
3284
Hi, Has anyone used ocaml for web cgi scripts (on apache)? Im looking for a tutorial that shows how to use ocamlnet to parse and use arguments, to process...
Rakotomandimby (R12y)...
mihamina.rakotomandim...
Send Email
May 1, 2005
9:27 pm
3285
You're probably looking for this: http://merjis.com/mod_caml_for_beginners ... -- Robert Wills <robert.wills@...>...
Robert Wills
robert.wills@...
Send Email
May 1, 2005
10:23 pm
3286
I would really appreciate just a litlle help toward uninstalling this Ocaml from my computer. Is there an uninstall file that I either cant find or was not...
idestine1
Offline Send Email
May 1, 2005
10:28 pm
3287
... May be :-) It's an Error 500 when I visited it. I'll have look at it a bit later. -- ASPO Infogérance http://aspo.rktmb.org/activites/infogerance ...
Rakotomandimby (R12y)...
mihamina.rakotomandim...
Send Email
May 1, 2005
10:39 pm
3288
... First, dont excpect people to guess things only you know: - What version arre you talking about? - I guessed (may be I'm wrong) you're running Linux or...
Rakotomandimby (R12y)...
mihamina.rakotomandim...
Send Email
May 1, 2005
10:44 pm
3289
Thank you thank you thank you ! I downloaded and installed the pre-compiled Ocaml package for Mac OS X Specifically, i installed version 3.08.3 of Ocaml...
idestine1
Offline Send Email
May 1, 2005
11:02 pm
3290
Here is a little more detail on what Unix I have , underpinning Mac OS X 10.3.9 : "The BSD incorporated into Mac OS X is known as Darwin. It is available as a...
idestine1
Offline Send Email
May 1, 2005
11:19 pm
3291
... If you did a default build (i.e. you didn't muck about with the --prefix options in the config phase of the build), then you should be able to just remove...
William D.Neumann
scoey13
Offline Send Email
May 1, 2005
11:33 pm
3292
http://merjis.com/developers/mod_caml/ is the right URL. Note that this is a set of bindings for the Apache API which happens to run CGI scripts too (in the...
Richard Jones
rwmjones
Offline Send Email
May 2, 2005
7:12 am
3293
... [...] IMHO it looks like a need for an extension of the Ocaml-syntax to write it in this way. It could be done in this way: exception Invalid_arguments ...
Oliver Bandel
oliver@...
Send Email
May 2, 2005
7:28 pm
3294
Hello, ... Well, there is an "include" for signature, but not for structures. Wouldn't it make sense to have something like that? Include_struct "tree.ml" or ...
Oliver Bandel
oliver@...
Send Email
May 2, 2005
7:29 pm
3295
... Definitely. ... You can do this: # let l = [ `A; `B ];; val l : [> `A | `B ] list = [`A; `B] # `C :: l;; - : [> `A | `B | `C ] list = [`C; `A; `B] #...
Martin Jambon
BioMim
Offline Send Email
May 2, 2005
8:29 pm
3296
... open Tree or #load "file-name";; Load in memory a bytecode object file (.cmo file) produced by the batch compiler ocamlc. #use "file-name";; Read, compile...
Frederic GAVA
frederic.gava@...
Send Email
May 2, 2005
9:18 pm
3297
... [...] But these commands are only working i the toplevel... Ciao, Oliver...
Oliver Bandel
oliver@...
Send Email
May 3, 2005
6:28 am
3298
... Another advatage is subtyping and so coercion: let color_from_bw x = (x : bw :> color) and if you do a let z = `Black z can be used where something of type...
Remi Vanicat
dl_ens
Offline Send Email
May 3, 2005
8:12 am
3299
... Actually, it seems to be the inverse: ... let foo = 0 ... include Incl let bar = foo + 1 ... ocamlc -c incl.ml ocamlc -c incl2.ml but you cannot have an...
Virgile Prevosto
virgilepr
Offline Send Email
May 3, 2005
9:14 am
3300
Hi, I am trying to make an ocaml program communicate with a java one... right now, i've made it through sockets and XML but it's quite heavy... :-( I am just...
Laurent Burgy
lburgy40
Offline Send Email
May 3, 2005
2:08 pm
3301
... Xavier Leroy has some software which may help you: http://pauillac.inria.fr/~xleroy/software.html#camljava Rich. -- Richard Jones, CTO Merjis Ltd. Merjis -...
Richard Jones
rwmjones
Offline Send Email
May 3, 2005
5:14 pm
3302
... And http://www.pps.jussieu.fr/~henry/ojacare/ Salutations Matt...
Matthieu Dubuget
dubuget
Offline Send Email
May 3, 2005
7:41 pm
3303
Hello, I am trying to get a C-file that calls Matlab libraries to work with OCaml. The C-file is compiled with the Matlab's mex script. However, this creates a...
Vlad
vmagdin
Offline Send Email
May 4, 2005
7:07 pm
3304
I am having trouble understanding tail recursion. I have read the posts about tail recursion in the archives, and I have used google to look up articles on...
vly3
Offline Send Email
May 5, 2005
12:43 am
3305
... let f x = let rec aux x acc = if x = 1 then acc else aux (x - 1) (acc + (x*2)) in aux x 1 This is the tail recursive version. A function is tail recursive...
Seth J. Fogarty
aravthamis
Online Now Send Email
May 5, 2005
12:52 am
3306
... [.. snipped ..] ... let g x = let rec newf x a = if x = 1 then a else newf (x-1) (a + x*2) in newf x 2;; A function is tail recursive if the result of the...
Karl Zilles
kzilles
Offline Send Email
May 5, 2005
1:06 am
3307
... OK, let me try :-) The result of the recursive call must be the result which is returned, without passing through any processing. Note that the question is...
Martin Jambon
BioMim
Offline Send Email
May 5, 2005
1:15 am
Messages 3278 - 3307 of 11540   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

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