cjeris changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
david_koontz has quit ["Leaving"]
pantsd has joined #ocaml
love-pingoo has quit ["Connection reset by pear"]
gim_ has quit []
jlouis has quit [Read error: 110 (Connection timed out)]
zarvok has joined #ocaml
joshcryer has quit [Read error: 104 (Connection reset by peer)]
_blackdog has quit [Remote closed the connection]
joshcryer has joined #ocaml
Tim1 has joined #ocaml
Tim1 has left #ocaml []
bluestorm has joined #ocaml
pantsd has quit ["Leaving."]
bluestorm has quit ["Konversation terminated!"]
Smerdyakov has quit ["Leaving"]
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
G_ has joined #ocaml
pantsd has joined #ocaml
G has quit [Nick collision from services.]
G_ is now known as G
mattam has quit [Read error: 110 (Connection timed out)]
zarvok has quit ["My damn controlling terminal disappeared!"]
Demitar has quit [Read error: 110 (Connection timed out)]
vital303 has joined #ocaml
vital303 has left #ocaml []
jlouis has joined #ocaml
mattam has joined #ocaml
<flux> good morning
screwt8 has quit [Remote closed the connection]
love-pingoo has joined #ocaml
screwt8 has joined #ocaml
ikaros has joined #ocaml
ikaros has quit ["segfault"]
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
joshcryer has quit [Nick collision from services.]
joshcryer has joined #ocaml
the_dormant has joined #ocaml
Mr_Awesome has quit ["...and the Awesome level drops"]
jlouis_ has quit [Read error: 110 (Connection timed out)]
Cygal has joined #ocaml
gim_ has joined #ocaml
the_dormant_ has joined #ocaml
moglum has joined #ocaml
the_dormant has quit [Read error: 110 (Connection timed out)]
_blackdog has joined #ocaml
ayrnieu has joined #ocaml
the_dormant has joined #ocaml
the_dormant_ has quit [Read error: 110 (Connection timed out)]
kelaouch1 has joined #ocaml
kelaouchi has quit [Read error: 110 (Connection timed out)]
kankamuso has joined #ocaml
kankamuso has quit [Client Quit]
the_dormant has quit []
bzzbzz has quit ["leaving"]
kosmikus has joined #ocaml
moglum_ has joined #ocaml
moglum has quit [Read error: 60 (Operation timed out)]
noteventime has joined #ocaml
Amorphous has quit [Read error: 110 (Connection timed out)]
the_dormant has joined #ocaml
ygrek has joined #ocaml
moglum has joined #ocaml
the_dormant_ has joined #ocaml
_blackdog is now known as _blackdog_away
moglum_ has quit [Read error: 110 (Connection timed out)]
the_dormant has quit [Read error: 110 (Connection timed out)]
the_dormant has joined #ocaml
love-pingoo has quit ["Leaving"]
the_dormant_ has quit [Connection timed out]
Amorphous has joined #ocaml
ygrek has quit [Remote closed the connection]
ygrek has joined #ocaml
pango has quit [Remote closed the connection]
pango has joined #ocaml
jlouis has joined #ocaml
_blackdog_away is now known as _blackdog
ita|zzz is now known as ita
<flux> hmm.. if sexplib were extended to support for example listing fields and their types, the s-expr generating capabilities would be brought more to the ocaml-land from the camlp4-land..
<flux> I'm thinking for example generating sql-queries based on record definitions
love-pingoo has joined #ocaml
<flux> oh, I didn't know sexplib was partially based on tywith
Smerdyakov has joined #ocaml
jlouis has quit [Remote closed the connection]
jlouis has joined #ocaml
benny has joined #ocaml
benny_ has quit [Read error: 60 (Operation timed out)]
pango has quit [Remote closed the connection]
mikeX has joined #ocaml
the_dormant has quit []
_blackdog is now known as _blackdog_away
ita is now known as ita|evil
bluestorm_ has joined #ocaml
pango has joined #ocaml
LeCamarade has joined #ocaml
gunark has joined #ocaml
Demitar has joined #ocaml
the_dormant has joined #ocaml
pedro_soc has joined #ocaml
LeCamarade is now known as LeCamarade_IHAVE
LeCamarade_IHAVE is now known as IHAVEAGUN
IHAVEAGUN is now known as LeCamarade
LeCamarade has quit ["ExitFailure (Char.ord "Ouch")"]
LeCamarade has joined #ocaml
<LeCamarade> I get this when I try to ocaml -c a module:
<LeCamarade> The implementation food.ml does not match the interface food.cmi:
<LeCamarade> The field `Food' is required but not provided
<LeCamarade> Why?
<LeCamarade> We need a pastebin ...
<pango> any will do... for example http://nopaste.tshw.de/ is lightweight and has an ocaml mode
<LeCamarade> Going there ...
ygrek has quit [Remote closed the connection]
noteventime has quit ["Leaving"]
<LeCamarade> Sorry, I forgot to chose OCaml syntax, but 'tis here: http://nopaste.tshw.de/117951945892b93/
<LeCamarade> I want to compile the ml file into a .cmo (as ocamldep advices). But I get an error.
<pango> mmmh first, why are you defining a Food.Food module ? :)
<pango> .ml/mli define implicitly a module already
<LeCamarade> pango: Oh, so the file makes a module already?
<LeCamarade> :oD
<pango> yup
<LeCamarade> But I really want to use this module stuff ... I've never really used it, yet I want to learn it. When do I get to use the module/sig/struct keywords, anyway?
<pango> when .ml/.mli couple is not enough ;)
<LeCamarade> But if module sig is supposed to be able to hide Food._y, why can I still access it?
<LeCamarade> I have put them all in one file, that is.
<pango> in the interface you export a module type, but the module implementation doesn't contain a module type
<pango> it contains a module
<pango> hence the mismatch
mc__ has joined #ocaml
<pango> food.mli: module Food: sig val x:int end would work
<LeCamarade> That gives a syntax error ... when I remove module Food = struct let x = 28 ... end ... Okay, just give me an example that compiles. :o(
* LeCamarade just doesn't see the need for this stuff in the first place.
mc__ has quit [Read error: 104 (Connection reset by peer)]
mc__ has joined #ocaml
<LeCamarade> pango: Can I put those two in the same file?
<pango> two what ?
<LeCamarade> Yes, of course. I think.
<LeCamarade> The module Food = and the module type Food =.
<pango> that would just define a module and a module type...
<pango> not sure whether OCaml would mind the name collision
<LeCamarade> Which of the two do I need in order to export only some members?
<bluestorm_> actually if you have only one module
<pango> one is the implementation, the other is the interface. You need both
<bluestorm_> you can specify the structure and the implementation at the same time
<pango> there's another bug in your code, you can only use ;; at toplevel
<bluestorm_> (module type is useful when you want to share that interface with other modules)
<LeCamarade> Yes, so where do I limit exported members? In the type, I guess.
<pango> (ie between toplevel declarations or expressions)
<LeCamarade> :oD
<LeCamarade> bluestorm_: Merci beaucoup.
<bluestorm_> hm
<bluestorm_> (there is a french version too)
<bluestorm_> :p
<LeCamarade> :oD
<LeCamarade> I only speak French because OCaml is French, complete with an accent (;;;;;).
<LeCamarade> I'm not a usual francophone. In fact, it is 15 to midnight in my country, and I have some kilometres to walk. (Many clues here.) Gotta go. Ciao.
LeCamarade has left #ocaml []
bluestorm_ has quit ["Konversation terminated!"]
the_dormant has quit ["Au revoir"]
love-pingoo has quit ["Connection reset by pear"]
Submarine has quit ["Leaving"]
Cygal is now known as Cygal_aw
<mc__> does ocaml have sockets or some networking stuff in the standard library?
<esdee> yes, in Unix
<mc__> esdee: and what do you have to do in Windows?
<esdee> use the Unix module still
<mc__> im not a windows user,but OCaml seems to be a great language for a game engine. But only if its supports cross-plattform networking out of the box
Cygal_aw has quit [Remote closed the connection]
<mc__> esdee: where is the Networking library? i cant see it here :http://caml.inria.fr/pub/docs/manual-ocaml/libref/index.html
<esdee> click on Unix, then search for socket
<mc__> esdee: oh cool,and that is also avaible on windows?
<esdee> all the socket stuff works on windows, but some of the other stuff doesn't. list of what doesn't work on windows: http://caml.inria.fr/pub/docs/manual-ocaml/manual035.html
<mc__> esdee: thank you a lot
moglum has quit []
pedro_soc has quit ["Abandonando"]