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...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.

Messages

  Messages Help
Advanced
Messages 6712 - 6741 of 9747   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
6712
hi, I try to interface with a c++ library but I can't link with compiled c ++ library. otest.cc: #include <caml/mlvalues.h> value incr(value i) { return...
Peter Halacsy
halacsyp
Offline Send Email
Nov 1, 2006
5:09 pm
6713
... Hello, When gcc is fed a file that ends in '.cc', it will compile that file in c++ mode. In this mode, function names will get mangled because g++ encodes...
romanoffi
Offline Send Email
Nov 1, 2006
5:45 pm
6714
... Thanks Rob. It helps. one problem remaining (not included in my test example) /usr/bin/ld: Undefined symbols: __Unwind_Resume ...
Peter Halacsy
halacsyp
Offline Send Email
Nov 1, 2006
6:30 pm
6715
... extern "C" { value incr(value i) { return Val_int( Int_val(i) +1); } } or so I believe...
Remi Vanicat
dl_ens
Offline Send Email
Nov 1, 2006
6:55 pm
6716
... I think you need extern "C" ... around the included header files too. I assume you're aware of the need for the various param and return macros to protect...
Richard Jones
rwmjones
Offline Send Email
Nov 1, 2006
7:48 pm
6717
... I doubt this is true, at least if you have developer tools installed. Then you can compile the ocaml-distribution by yourself. Since a while I install...
Oliver Bandel
oliver@...
Send Email
Nov 1, 2006
9:50 pm
6718
Hi, i am relatively new to ocaml and make, please forgive my simple question: I have got following directory layout: pars: read_whole.ml -> main program pars:...
philip
philip-f@...
Send Email
Nov 1, 2006
10:52 pm
6719
Hi, there I recently got problems when I want to define a function which accepts an object and an integer "n" as parameter and gives out an array of n such ...
code17
code_1977
Offline Send Email
Nov 2, 2006
10:54 am
6720
... I don't this function is such a good idea ... Part of the problem is that it doesn't change the object's id field. All objects are supposed to have a...
Richard Jones
rwmjones
Offline Send Email
Nov 2, 2006
1:02 pm
6721
... You might also want to read this: http://caml.inria.fr/pub/old_caml_site/caml-list/1685.html Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing...
Richard Jones
rwmjones
Offline Send Email
Nov 2, 2006
1:46 pm
6722
... Thanks for the hint. I will treat it more carefully. ... Actually, I need the ability of regenerate n new objects, including all the values as well as all...
code17
code_1977
Offline Send Email
Nov 2, 2006
4:48 pm
6723
... Then you should do this: 1) Your classes take an additional () parameter, which makes "new c" a function of type unit -> <obj> 2) Your library provides...
Martin Jambon
BioMim
Offline Send Email
Nov 2, 2006
5:40 pm
6724
... thanks, it works. I also needed LDFLAGS = -fexceptions, and now I can compile. OCAMLMAKEFILE = OCamlMakefile SOURCES = stub.cc maxent.ml RESULT = test ...
Peter Halacsy
halacsyp
Offline Send Email
Nov 2, 2006
7:06 pm
6725
Hi, is there any difference between the next two solution? value some_proc(value v) { CAMLparam1(v); // do sg CAMLreturn (Val_unit); } void some_proc(value v)...
Peter Halacsy
halacsyp
Offline Send Email
Nov 3, 2006
6:27 pm
6726
... Use the CAMLreturn(Val_unit)! The two key issues are: 1) using a CAMLreturn... rather than a C/C++ return - which you seem to already have down pat. 2)...
Robert Roessler
robertr959
Offline Send Email
Nov 3, 2006
7:47 pm
6727
Hello, I'm trying to develop some medium-sized ocaml program, but I'm a total novice. I have organized my code around a few modules/files. Unfortunately I an...
cristipph
Offline Send Email
Nov 6, 2006
5:58 am
6728
You must, as they say, be doing it wrong. The toplevel can either be linked with any number of modules, or[1] you can load any number of modules at runtime. ...
Richard Jones
rwmjones
Offline Send Email
Nov 6, 2006
9:22 am
6729
... be ... But this means that I should have the modules precompiled? Thus can I change them in the toplevel itself? How do I tell the toplevel 'redefine...
cristipph
Offline Send Email
Nov 6, 2006
4:42 pm
6730
... I just wrote something about these issues, see section "Testing modules of your own program" at http://wiki.cocan.org/tips_for_using_the_ocaml_toplevel ...
Martin Jambon
BioMim
Offline Send Email
Nov 6, 2006
6:04 pm
6731
Hello to everybody! As I do every year, I've put online a downloadable version of the ML archive. It is at...
Stalkern 2
stalkern2
Offline Send Email
Nov 6, 2006
7:16 pm
6732
... modules ... Thanks a lot. I'm going to check the OCamlMake as soon as I get some time. Currently I'm using a gnu makefile derived from some ocaml skeleton...
cristipph
Offline Send Email
Nov 7, 2006
6:27 am
6733
... Thanks for a valuable contribution. Regards Johann -- Johann Spies Telefoon: 021-808 4036 Informasietegnologie, Universiteit van Stellenbosch ...
Johann Spies
jspies@...
Send Email
Nov 7, 2006
7:21 am
6734
... Ah right, weird/ancient OS. Can you move to a proper OS? Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com...
Richard Jones
rwmjones
Offline Send Email
Nov 7, 2006
9:01 am
6735
Hello, as I am learning Ocaml, I solved some of the 99 Prolog Problems at http://www.hta-bi.bfh.ch/~hew/informatik3/prolog/p-99/ ...
Ulrich
ulrivo
Offline Send Email
Nov 11, 2006
9:39 pm
6736
... Well, maybe you think that because you're new to ocaml. Your "next_vect" function looks quite readable and short to me. here's how I would do it (without...
roparzhhemon
Offline Send Email
Nov 12, 2006
1:12 pm
6737
I'm curious why SML of NJ includes a null function as part of its List module but OCaml left it out. I know its usage has been marginalized by pattern matching...
michael rice
nowgate
Offline Send Email
Nov 12, 2006
6:14 pm
6738
... It doesn't seem to be very useful. Just do that: if l = [] then ... else ... Martin -- Martin Jambon, PhD http://martin.jambon.free.fr Ce message est...
Martin Jambon
BioMim
Offline Send Email
Nov 12, 2006
9:28 pm
6739
... [...] Doing some OO-wrapping around this, it maybe useful for a lot of people ;-) Ciao, Oliver...
Oliver Bandel
oliver@...
Send Email
Nov 12, 2006
9:55 pm
6740
This is probably a question of personal taste, but I would not use l as a variable name when I optimize for readability. If performance is not critical I'd...
Radu Grigore
radugrigore
Offline Send Email
Nov 13, 2006
9:08 am
6741
... I optimize for readability. If I understood the original question correctly, the point was to create a "polymorphic" function that works as well, say, on...
roparzhhemon
Offline Send Email
Nov 13, 2006
4:46 pm
Messages 6712 - 6741 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