mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab OCaml 3.10.2 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
r0bby has joined #ocaml
AxleLonghorn has joined #ocaml
AxleLonghorn has left #ocaml []
coucou747 has quit ["bye ca veut dire tchao en anglais"]
det has joined #ocaml
Ugarte has quit [leguin.freenode.net irc.freenode.net]
cmeme has quit [leguin.freenode.net irc.freenode.net]
olegfink has quit [leguin.freenode.net irc.freenode.net]
flux has quit [leguin.freenode.net irc.freenode.net]
Demitar has quit [leguin.freenode.net irc.freenode.net]
flux has joined #ocaml
Demitar has joined #ocaml
olegfink has joined #ocaml
Ugarte has joined #ocaml
cmeme has joined #ocaml
ecc has quit [Read error: 113 (No route to host)]
seafood_ has joined #ocaml
DTH has joined #ocaml
<jdrake> Does anyone know anything about the program called 'Camela'?
<pango> do you mean Camelia ? (http://camelia.sourceforge.net/)
<DTH> lets say you have "let x = fun () -> 20" how would you assign the return value of the function to something?
<jdrake> yes
<jdrake> pango: I have trouble compiling the thing :-(
<jdrake> The solution is mentioned as being putting class OCamlProcess; inside console.h
<jdrake> But I am not sure this wouldn't damage ocaml
<jdrake> If I made something else with it later
yminsky_ has joined #ocaml
<tsuyoshi> dth: what do you mean by "assign it to something"?
<jdrake> My bad, this is all in camelia
Axioplas1 has joined #ocaml
Axioplase has quit [Nick collision from services.]
Axioplas1 is now known as Axioplase
Axioplase has quit [Read error: 104 (Connection reset by peer)]
Axioplase has joined #ocaml
yminsky_ has quit []
pants1 has quit ["Leaving."]
jeremiah has joined #ocaml
Axioplase has quit [Read error: 110 (Connection timed out)]
Axioplase has joined #ocaml
shortcircuit has quit [Read error: 110 (Connection timed out)]
Axioplas1 has joined #ocaml
Axioplas1 has quit [Client Quit]
Axioplas1 has joined #ocaml
Axioplase has quit [Nick collision from services.]
Axioplas1 is now known as Axioplase
shortcircuit has joined #ocaml
middayc has quit []
shortcircuit has quit [Read error: 110 (Connection timed out)]
shortcircuit has joined #ocaml
jdrake has quit [Connection timed out]
seafood__ has joined #ocaml
Jeff_123 has joined #ocaml
seafood_ has quit [Read error: 104 (Connection reset by peer)]
seafood_ has joined #ocaml
seafood__ has quit [Read error: 110 (Connection timed out)]
Ugarte has quit [Remote closed the connection]
Ugarte has joined #ocaml
al-maisan has joined #ocaml
Jeff_123_ has joined #ocaml
Jeff_123 has quit [Read error: 104 (Connection reset by peer)]
Axioplase has quit ["leaving"]
Jeff_123_ has quit []
netx has joined #ocaml
LordMetroid has joined #ocaml
ikaros has joined #ocaml
al-maisan has quit ["Leaving."]
Snark has joined #ocaml
filp has joined #ocaml
DTH has quit []
asmanur has joined #ocaml
al-maisan has joined #ocaml
Linktim has joined #ocaml
<asmanur> Hello, is it possible to create a recursive functor ? module rec Foo (A : Bar) = ... doesn't seem to work.
<flux> hmm, good question
<flux> can you work it around with signatures?
<asmanur> hmm .. how so ?
<flux> module type BAR = sig .. end .. module Foo (A : BAR) = struct .. end .. module Bar : BAR = struct .. end?
<asmanur> hum
<flux> ah, never mind, bar was already a module type, right?
<asmanur> hum yep
<flux> perhaps you could post a larger example of what's not working
<asmanur> hum ok
<flux> so the type signature of BAR needs to refer to module Foo?
<flux> can't Foo have its own module type it could refer to?
<flux> I don't guarantee to answer personally, but perhaps some other kind folk will come and see your problem ;)
<asmanur> flux: I want to do some thing like module rec Foo (A : Bar) : Bar = struct ... end
<asmanur> but I got a syntax error, so I don't know wether it's really impossible or not.
<flux> hm, that's not recursive at all
<flux> you don't need the keyword rec there
<asmanur> flux: what if I want to call Foo inside Foo ? :)
<asmanur> I'm trying to play with modules as if they were functions, but it's tricky :p
<flux> looks like fun
<asmanur> yep :p
<asmanur> An alternative is to put directly the length inside the List module, but it's not very clean I think.
seafood_ has quit [Read error: 110 (Connection timed out)]
asmanur has quit [Remote closed the connection]
lordmetroid_ has joined #ocaml
LordMetroid has quit [Read error: 110 (Connection timed out)]
Linktim_ has joined #ocaml
nuncanada has quit [Read error: 110 (Connection timed out)]
hkBst has joined #ocaml
nuncanada has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
<flux> well, did you solve it?-)
yangsx has quit [Read error: 110 (Connection timed out)]
lordmetroid_ has quit [Client Quit]
coucou747 has joined #ocaml
rwmjones has joined #ocaml
Linktim_ has quit [Read error: 104 (Connection reset by peer)]
Linktim has joined #ocaml
<al-maisan> Hello there!
<al-maisan> is it possible to specify a message to be displayed when an assertion fails?
<qwr> write your own assert...
<qwr> let die s = raise (Assert_failure (s, 0, 0))
<qwr> let die cond s = if cond then raise (Assert_failure (s, 0, 0))
<al-maisan> qwr: cool!
<qwr> you wont get line numbers, though. that seems to be some compiler magic. ok you could get those too with camlp4, i think...
<al-maisan> I think I will settle for
<al-maisan> let assert_with_msg bexpr msg = if not bexpr then failwith msg;;
rby has quit [Read error: 104 (Connection reset by peer)]
Yoric[DT] has joined #ocaml
Linktim_ has joined #ocaml
Linktim has quit [Read error: 110 (Connection timed out)]
Linktim- has joined #ocaml
Linktim_ has quit [Read error: 110 (Connection timed out)]
rwmjones has quit ["Closed connection"]
ikaros_ has joined #ocaml
filp has quit ["Bye"]
ikaros has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
ikaros_ has quit [Read error: 110 (Connection timed out)]
ikaros has quit ["segfault"]
ikaros has joined #ocaml
rwmjones_afk is now known as rwmjones
<rwmjones> does anyone know when 3.11 is going to be released?
filp has joined #ocaml
<flux> hm, I wouldn't mind if there was a 'with' notation that worked with objects :); like an instance inheriting another instance..
<flux> I suppose it's not a big task to overcome that, though
<flux> atleast if there is a description of the object's type available
AxleLonghorn has joined #ocaml
AxleLonghorn has left #ocaml []
RobertFischer has joined #ocaml
nysin has joined #ocaml
olleolleolle has joined #ocaml
middayc has joined #ocaml
olleolleolle has left #ocaml []
<hcarty> rwmjones: The 3.11 changelog has not been updated in a while, though I don't know how relevant that is.
structured has quit [Read error: 110 (Connection timed out)]
filp has quit [Read error: 104 (Connection reset by peer)]
filp has joined #ocaml
Axioplase has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
Axioplase has quit [Remote closed the connection]
Axioplase has joined #ocaml
pango has quit [Remote closed the connection]
Linktim- has quit [Read error: 104 (Connection reset by peer)]
pango has joined #ocaml
Linktim has joined #ocaml
olleolleolle has joined #ocaml
postalchris has joined #ocaml
filp has quit ["Bye"]
Linktim_ has joined #ocaml
bluestorm has joined #ocaml
rwmjones_ has joined #ocaml
coucou747 has quit ["bye ca veut dire tchao en anglais"]
Linktim has quit [Read error: 110 (Connection timed out)]
RobertFischer has quit ["Taking off -- check out http://smokejumperit.com and http://enfranchisedmind.com/blog/"]
Tetsuo has joined #ocaml
mlh has quit [Read error: 110 (Connection timed out)]
Anarchos has joined #ocaml
<Anarchos> strange that i can't compile otherlibs/unix when i configure with shared libs
olleolleolle has quit []
LordMetroid has joined #ocaml
Kopophex has joined #ocaml
nysin has quit [Remote closed the connection]
mlh has joined #ocaml
rodge has joined #ocaml
Kopophex has quit [Read error: 104 (Connection reset by peer)]
filp has joined #ocaml
JokerDoom has joined #ocaml
RobertFischer has joined #ocaml
postalchris has quit [Read error: 110 (Connection timed out)]
nysin has joined #ocaml
olleolleolle has joined #ocaml
olleolleolle has left #ocaml []
LordMetroid has quit ["Leaving"]
Snark has quit ["Ex-Chat"]
al-maisan has quit ["Leaving."]
JokerDoom is now known as CoryDambach
CoryDambach has quit [Client Quit]
CoryDambach has joined #ocaml
CoryDambach has quit [Read error: 104 (Connection reset by peer)]
JokerDoom has joined #ocaml
filp has quit [Read error: 110 (Connection timed out)]
filp has joined #ocaml
postalchris has joined #ocaml
middayc_ has joined #ocaml
middayc has quit []
nysin has quit ["Leaving"]
RobertFischer has quit ["Taking off -- check out http://smokejumperit.com and http://enfranchisedmind.com/blog/"]
bzzbzz has quit ["leaving"]
<Anarchos> strange that i can't compile otherlibs/unix when i configure with shared libs
Yoric[DT] has quit ["Ex-Chat"]
bluestorm has quit ["Konversation terminated!"]
JokerDoom has left #ocaml []
jdrake has joined #ocaml
postalchris has quit [Read error: 110 (Connection timed out)]
Anarchos has quit ["Vision[0.8.5-0418]: i've been blurred!"]
postalchris has joined #ocaml
filp has quit ["Bye"]
Tetsuo has quit ["Leaving"]
postalchris has quit ["Leaving."]
Linktim_ has quit [Remote closed the connection]
Axioplase has quit ["tomorrow"]
AxleLonghorn has joined #ocaml
AxleLonghorn has left #ocaml []
structured has joined #ocaml
vpalle has joined #ocaml
yminsky_ has joined #ocaml
LordMetroid has joined #ocaml
bzzbzz has joined #ocaml
middayc_ has quit []
yangsx has joined #ocaml