<mikeX>
mrsolo_: there's a function for printing the corresponding messages i think
<mikeX>
<mikeX>
val error_message : error -> string
<mikeX>
there's also: handle_unix_error f x applies f to x and returns the result. If the exception Unix_error is raised, it prints a message describing the error and exits with code 2.
<mikeX>
<mrsolo_>
thanks!
<mikeX>
np :)
ramkrsna has left #ocaml []
mikeX has quit [Read error: 110 (Connection timed out)]
<perspectivet>
Does anyone know how to get call C++ from ocaml in a standalone native executable? I've been able to call some C stubs from ocaml. I've made extern "C" {...} wrappers from my C++ code then called it from from my C stub functions. Everything seems to compile and link (with hand compilation steps) but the standalone exe does nothing when run? Any pointers to Ocaml bindings for C++ libs would be ideal.
<zmdkrbou>
beuark c++
<zmdkrbou>
sprotch
<zmdkrbou>
time to sleep in here
pango_ has joined #ocaml
bluestorm has quit [Remote closed the connection]
<perspectivet>
Are beuark and sprotch ocaml bindings to C++ libs?
pango has quit [Read error: 110 (Connection timed out)]
Slick18 has joined #ocaml
ellisonch has quit [Read error: 104 (Connection reset by peer)]
joshcryer has quit []
JosephRivers has joined #ocaml
JosephRivers has quit [Remote closed the connection]
joshcryer has joined #ocaml
Slick18 is now known as ellisonch
vodka-goo has joined #ocaml
ski_ has joined #ocaml
ski has quit [Nick collision from services.]
ski_ is now known as ski
clog has joined #ocaml
pabs3 has joined #ocaml
<pabs3>
Hi all. What would "Unbound module Foo" mean in the context of running ocamlc?
m3ga has joined #ocaml
<vodka-goo>
pabs3: it means OCaml doesn't find the compiled interface for module Foo
<vodka-goo>
you probably have a foo.ml file in the current dir, you need to compile it before
<pabs3>
hmmm. I see now. I wonder why install.ml ignored that module
* pabs3
ocaml noop trying to compile mtasc
<pabs3>
noob
<vodka-goo>
I think I built it once
<vodka-goo>
then built a flash hello world
<vodka-goo>
then thought it was no use going farther without the MX classes (or something like that)
<vodka-goo>
you need to buy macromedia's classes, right ?
<pabs3>
not really sure, just playing around for now
vodka-goo has quit ["Connection reset by by pear"]
<pabs3>
cool, got it compiled
Revision17 has quit [Read error: 110 (Connection timed out)]
<pabs3>
ok, how would I find out the appropriate -I directory for a specific library from the command line?
m3ga has quit ["disappearing into the sunset"]
Schmurtz has joined #ocaml
pattern has quit [Connection timed out]
<dylan>
pabs3: Perhaps you should look into ocamlfind (also called findlib).
<pabs3>
yeah, got an answer about that elsewhere
<dylan>
sioer
<dylan>
er, super.
pattern has joined #ocaml
Anarchos has joined #ocaml
* Anarchos
is idle: BRB
* Anarchos
is idle: help
* Anarchos
is idle: gone checking my daughter
pabs3 has left #ocaml []
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
khaladan has quit [Read error: 110 (Connection timed out)]
rillig has joined #ocaml
tr00nd has left #ocaml []
Bigb[a]ng is now known as Bigbang
pango has quit ["Leaving"]
pango has joined #ocaml
mellum has quit [Read error: 110 (Connection timed out)]
mrsolo has joined #ocaml
<mrsolo>
does microsoft toolchain end up with smaller compiled code than mingw toolchain?
demitar_ has joined #ocaml
Demitar has quit [Read error: 110 (Connection timed out)]
khaladan has joined #ocaml
khaladan_ has joined #ocaml
slipstream-- has joined #ocaml
khaladan has quit [Read error: 110 (Connection timed out)]
khaladan_ is now known as khaladan
Revision17 has joined #ocaml
slipstream has quit [Connection timed out]
Revision17 has quit [Remote closed the connection]
vodka-goo has joined #ocaml
lscd has quit ["sleep. study."]
rillig has quit ["exit(EXIT_SUCCESS)"]
vodka-goo has quit ["Connection reset by by pear"]
mrsolo has quit ["Leaving"]
cookoo has joined #ocaml
ramenboy has joined #ocaml
cookoo has left #ocaml []
mrsolo has joined #ocaml
mikeX has joined #ocaml
mrsolo has quit ["Leaving"]
mrsolo has joined #ocaml
AlfredR314 has joined #ocaml
<AlfredR314>
i am trying to write a function that composes any function of a single parameter, with itself, k times. what am i doing wrong? http://pastebin.com/565890
<dvekravy>
type of id is 'a -> 'a, so self_comp returns 'a -> 'a so f has type ('a -> 'a) -> 'a -> 'a, but sqrt has type float -> float (matchable with 'a -> 'a)
<AlfredR314>
okay, here's what i'm not clear on. ('a -> 'a) means a function from a' to a' as a parameter, right? and i'm not sure how to juggle the expressions to make them correct.
<AlfredR314>
i'm with you up to "but sqrt"
<dvekravy>
yes, id has to be float
<dvekravy>
# let rec self_comp f k = if k > 0 then (f (self_comp f (k - 1))) else 1.0;;
<dvekravy>
# self_comp (sqrt) 2;;
<dvekravy>
- : float = 1.
<pango>
let rec self_comp f k =
<pango>
let comp f g = (fun x -> f (g x)) in
<pango>
if k > 0 then comp f (self_comp f (k - 1)) else id;;
<AlfredR314>
okay, so, what if i want the type to be inferred for any single parameter function?