joewilliams_away has quit [Ping timeout: 246 seconds]
joewilliams_away has joined #ocaml
enthymeme has joined #ocaml
enthymeme has quit [Quit: rcirc on GNU Emacs 23.1.1]
ymasory has quit [Quit: Leaving]
mnabil has quit [Ping timeout: 240 seconds]
Snark has joined #ocaml
__marius__ has quit [Ping timeout: 250 seconds]
arubin has quit [Quit: arubin]
__marius__ has joined #ocaml
philtor has joined #ocaml
Cyanure has joined #ocaml
spicey has joined #ocaml
<spicey>
having no problems to build under *nix, I am stuck attempting a build under windows, under mingw/msys environment: a simplest program fails to build with ocamlmake by insisting to use camlidldll: http://codepad.org/0o6OiTds What could be a reason for this?
<spicey>
Or should I just ditch building with ocamlmakefile altogether
philtor has quit [Ping timeout: 240 seconds]
<spicey>
...hmm, it seems that the mingw/win support is flaky; if I comment out the system detection for it to think that it is NOT windows, everything builds as a charm
Associat0r has joined #ocaml
Associat0r has quit [Quit: Associat0r]
ygrek has joined #ocaml
tnguyen has joined #ocaml
tnguyen has quit [Remote host closed the connection]
edwin has joined #ocaml
Yoric has joined #ocaml
edwin has quit [Remote host closed the connection]
edwin has joined #ocaml
yezariaely has joined #ocaml
Znudzon has joined #ocaml
<adrien>
that's unfortunately not uncommon: something meant to support windows better makes the support worse :p
<spicey>
For some weird reason the idl definitions conflicted with the usual build recipes; worked around by just removing all the mentions of *idl* as I'm fairly certain I absolutely won't need them. Now that I can build a little ocaml+glcaml/sdl project under both linuxes and windowses, that's quite cool and inspiring
flux has quit [Ping timeout: 260 seconds]
flux has joined #ocaml
Cyanure has quit [Remote host closed the connection]
jsk has quit [Quit: jsk]
jsk has joined #ocaml
yezariaely has quit [Quit: Leaving.]
sepp2k has joined #ocaml
Znudzon has quit [Ping timeout: 272 seconds]
gildor has joined #ocaml
Pepe_ has quit [Quit: leaving]
Pepe_ has joined #ocaml
lopex has joined #ocaml
boscop has joined #ocaml
ikaros has joined #ocaml
mnabil has joined #ocaml
sepp2k has quit [Quit: Leaving.]
mnabil has quit [Ping timeout: 276 seconds]
mnabil has joined #ocaml
Znudzon has joined #ocaml
jsk has quit [Remote host closed the connection]
tauntaun has joined #ocaml
Znudzon has quit [Ping timeout: 272 seconds]
tauntaun has quit [Quit: Ex-Chat]
Yoric_ has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
Yoric_ is now known as Yoric
Cyanure has joined #ocaml
sepp2k has joined #ocaml
alpounet_ has joined #ocaml
<alpounet_>
gildor: ping
ftrvxmtrx has quit [Ping timeout: 250 seconds]
ftrvxmtrx has joined #ocaml
alpounet_ has quit [Quit: Page closed]
smerz has joined #ocaml
philtor has joined #ocaml
ymasory_ has quit [Quit: Leaving]
ymasory has joined #ocaml
sepp2k1 has joined #ocaml
sepp2k has quit [Ping timeout: 246 seconds]
fraggle_ has quit [Quit: -ENOBRAIN]
khia0 has joined #ocaml
fraggle_ has joined #ocaml
khia0 has left #ocaml []
agarwal1975 has joined #ocaml
sepp2k1 has quit [Read error: Operation timed out]
<adrien>
is there a way to make a functor that depends on two (or more) module types? or do I have to make a functor and put another functor inside?
<flux>
yes, but they don't need to have explicit names
<flux>
so functor (..) -> functor (..), iirc atleast :)
<adrien>
ok, thanks
<agarwal1975>
yes, you just give multiple arguments in curried style.
<adrien>
ok, this works: 'module X = functor (Y : Y) -> functor (Z : Z) -> struct end', and then 'module A = X(P)(Q)'
<adrien>
didn't know there was a "functor" keyword
sepp2k has joined #ocaml
<agarwal1975>
analogous to fun for functions. you can instead write module X (Y : Y) (Z : Z) = struct ... end
mnabil has quit [Ping timeout: 276 seconds]
<adrien>
makes sense, I had tried a comma. I don't know why I hadn't tried that too
<adrien>
great...
<adrien>
I can't use lwt because I use libevent and both libevent and libev create usr/include/event.h...
fraggle_ has quit [Ping timeout: 276 seconds]
<adrien>
that would be seriously retarded: create a library (libev) modelled after another one (libevent) and use the same filename for the main header...
<ygrek>
I guess it is an (optional) compatibility layer
philtor has quit [Ping timeout: 240 seconds]
<adrien>
seems so: "* Only the libevent-1.4.1-beta API is being emulated.", "* Use it by including <event.h>, as usual.", and other limitations, so I think that there will soon be a call to 'rm' in the package
fraggle_ has joined #ocaml
enthymeme has joined #ocaml
fraggle_ has quit [Ping timeout: 246 seconds]
fraggle_ has joined #ocaml
<hcarty>
Is there a simple, preferably pre-defined, OCaml expression match pattern in ocamllex?
<hcarty>
I'm working on/playing with xstrp4
<hcarty>
I've been able to make it take a plain function as the printer, but it would be Very Cool to be able to embed proper OCaml expressions for evaluation in interpolated strings.
<adrien>
(dunno, but not that xstrp4 seems to have a bug preventing you to use the word "file" in your code [ seems to be a leftover from previous version ])
spicey has quit [Remote host closed the connection]
<hcarty>
adrien: Oh, that seems rather serious. Do you have a test case by any chance?
<hcarty>
adrien: Oh yes, it definitely does. Thanks for the tip.
<adrien>
I should report it, I've always forgotten to
arubin has joined #ocaml
<hcarty>
I've added suport for "${foo,print_foo}" which uses %a internally. But it would be nice to support expressions in place of "foo" and "print_foo"
SoftTimur has joined #ocaml
<SoftTimur>
hello all, I have defined "a : A option ref" and "a := Some {c1 = v1; c2 = v2}", how could I get the c1 of a? (!a).c1 does not seem to work...
Snark has quit [Quit: Ex-Chat]
<adrien>
SoftTimur: you're not taking care of the "option" part: you need to do something like: match !a with | Some a -> a.c1 | None -> raise AAAHHHNoValue
<SoftTimur>
adrien: I see... when I creat a, should I do "a:= Some {c1=v1; c2=v2}" or "a:= ref Some {c1=v1; c2=v2}"?
<adrien>
well, the second form would mean you'd have an 'a ref ref option' which is probably not what you want
<adrien>
bah, I wrote it reversed: your second one is "a option ref ref"
mnabil has joined #ocaml
Cyanure has quit [Ping timeout: 250 seconds]
<SoftTimur>
adrien: thank you
<adrien>
SoftTimur: np, btw, what were you trying to do when you stumbled on that issue?
<SoftTimur>
adrien: I just want to make programs run...
<SoftTimur>
adrien: the "a: A option ref" has been defined before
<SoftTimur>
hello all, how to express the empty set of Atom.AtomSet.t ?
<gildor>
alpounet: pong
<SoftTimur>
well, I think it is Atom.AtomSet.empty
<adrien>
SoftTimur: quite likely, but which library are you talking about?
<SoftTimur>
adrien: isn't there a AtomSet Library?
<adrien>
found one in AlphaLib, is it that one you're talking about?
agarwal1975 has quit [Quit: agarwal1975]
SoftTimur has quit [Quit: Leaving.]
mnabil has quit [Ping timeout: 240 seconds]
SoftTimur has joined #ocaml
edwin has quit [Remote host closed the connection]
arubin has quit [Quit: arubin]
ccasin has joined #ocaml
cthuluh has quit [Ping timeout: 260 seconds]
myu2 has quit [Remote host closed the connection]
ztfw has joined #ocaml
ygrek has quit [Remote host closed the connection]
<SoftTimur>
adrien: if you are still there, yes I think what I am using is similar to AtomMap module in AlphaLib
cthuluh has joined #ocaml
<SoftTimur>
always talking about AtomMap, I have defined "type ENS = A AtomMap.t". does anyone know how to build a function "f: ENS -> (atom * A) list" which returns a list of all the elements in a map?
<SoftTimur>
I guess we must use some existing functions like AtomMap.fold, AtomMap.iter...