sponge45 changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/
love-pingoo has quit ["Connection reset by pear"]
mnemonic has quit ["leaving"]
ramkrsna has quit [Read error: 110 (Connection timed out)]
smimou has quit ["bli"]
ramkrsna has joined #ocaml
Smerdyakov has quit [Remote closed the connection]
Smerdyakov has joined #ocaml
slipstream-- has joined #ocaml
slipstream has quit [Read error: 110 (Connection timed out)]
mbishop has quit [Remote closed the connection]
Mr_Awesome has joined #ocaml
malc_ has joined #ocaml
mbishop has joined #ocaml
b00t has joined #ocaml
bzzbzz has quit ["leaving"]
Mr_Awesome has quit ["...and the Awesome level drops"]
threeve has quit []
tautologico has joined #ocaml
Smerdyakov has quit [Client Quit]
tautologico has quit []
fluctus has left #ocaml []
pstickne has joined #ocaml
pstickne has quit [Read error: 104 (Connection reset by peer)]
pstickne has joined #ocaml
jlouis has quit [Remote closed the connection]
love-pingoo has joined #ocaml
Submarine has joined #ocaml
diffbavis has quit [Read error: 104 (Connection reset by peer)]
malc_ has quit [Read error: 110 (Connection timed out)]
johnnowak has joined #ocaml
neomage has quit [Remote closed the connection]
pango has quit [Remote closed the connection]
malc_ has joined #ocaml
diffbavis has joined #ocaml
diffbavis has quit [Read error: 104 (Connection reset by peer)]
malc_ has quit [Read error: 110 (Connection timed out)]
vorago has left #ocaml []
johnnowak has quit []
b00t has quit ["Leaving"]
slacker403 has quit [Read error: 104 (Connection reset by peer)]
ikaros has quit ["Leaving"]
ikaros has joined #ocaml
cjeris has joined #ocaml
Submarine has quit ["Leaving"]
velco has joined #ocaml
velco has quit [Client Quit]
pstickne has quit ["Leaving"]
Smerdyakov has joined #ocaml
smimp has joined #ocaml
pango has joined #ocaml
love-pingoo has quit ["Leaving"]
benny_ has joined #ocaml
diffbavis has joined #ocaml
benny has quit [Read error: 110 (Connection timed out)]
Naked is now known as Hadaka
mbp has joined #ocaml
<mbp> how would I go about including a file into my .ml file? standard ml "use" doesnt work.
love-pingoo has joined #ocaml
bluestorm_ has joined #ocaml
smimou has joined #ocaml
jlouis has joined #ocaml
<tsuyoshi> uhh.. no idea
<tsuyoshi> never included anything
<mbp> well - I need it bad :)
<hcarty> mbp: You could use cpp or some other preprocessor
<mbp> hcarty: is there no built-in way?
<hcarty> Not that I know of. What are you trying to accomplish with the include?
<mbp> hcarty: I am generating some code to create a dynamic graph. The code for the graph needs some functions definitions before and after it
<hcarty> If you're using the toplevel (ocaml foo.ml) you could try using #use
<hcarty> Unfortunately, getting much more complicated than that goes beyond my current knowledge level
<mbp> hcarty: thanks anyway
<love-pingoo> I must have missed the problem description... why do you need include and are not happy with open ?
<mbp> love-pingoo: I have a program, say with contents A B C. C is included from another file and only compiles if A and B exists.
<mbp> it is my understanding, that "open" only takes some precompiled modules and not pure ocaml code.
<love-pingoo> A B and C are modules ? values ?
<love-pingoo> open takes a module name, that's all
<mbp> they are lines of ocaml code.
<love-pingoo> if A opens B, then B will have to be compiled before A
<love-pingoo> A and B are static and C is generated dynamically from the graph ?
<mbp> A and C are static. B are dynamically generated
<love-pingoo> ok
<tsuyoshi> why not just use modules?
<love-pingoo> you can generate the graph in the file b.ml (I'm supposing it's only one value, named g)
<love-pingoo> then you end file will be A C (use B.g instead of g in C, or open B before C)
<love-pingoo> you generate b.ml, then you compile the three files
<love-pingoo> OCaml doesn't have to know that one file was generated after the others
jlouis_ has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
<mbp> love-pingoo: it is not just one value. A opens other modules which B needs
<love-pingoo> why not open them from B ?
<mbp> because I would prefer not to insert static code in my generator.
<love-pingoo> okay..
<love-pingoo> I just compiled a file with an include in it :) Didn't know that existed ...
<love-pingoo> dbaelde@snow:~/lang/ml$ cat a.ml
<love-pingoo> let v = 1
<love-pingoo> dbaelde@snow:~/lang/ml$ cat b.ml
<love-pingoo> include A
<love-pingoo> let _ = print_int v ; print_newline ()
<love-pingoo> dbaelde@snow:~/lang/ml$ ocamlc a.ml b.ml
<love-pingoo> dbaelde@snow:~/lang/ml$ ./a.out
<love-pingoo> 1
<love-pingoo> mbp: I guess you'd be happy with that
<zmdkrbou> it's not in the part I of the manual, only the precise language description
<mbp> love-pingoo: doesnt seem to work when A opens a module
<love-pingoo> mmm, and if A includes it ?
<mbp> love-pingoo: include the module?
<mbp> i
<love-pingoo> why not ?
<mbp> it already opens it..
<love-pingoo> include it instead of opening it
<love-pingoo> it's different
<love-pingoo> it means that every value/type exposed by the included module will be exposed in the including module
<love-pingoo> (or so I'd believe)
<love-pingoo> open just means that you can access the namespace implicitely, but it doesn't expose outside what you can access
<mbp> love-pingoo: you are my hero ;-)
<mbp> thanks!
<love-pingoo> I love these moments :D
<love-pingoo> mbp: I was just tinkering...
pango has quit ["I shouldn't really be here - dircproxy 1.0.5"]
pango has joined #ocaml
diffbavis has quit [Read error: 104 (Connection reset by peer)]
ikaros has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
<mbp> anyone who has experience with ocamlgraph? How would I go about adding a edge to the void?
pango has quit [Remote closed the connection]
pango has joined #ocaml
pango has quit [Remote closed the connection]
pango_ has joined #ocaml
<mattam> mbp: i have some, you should have an add_edge function in the interface
mnemonic has joined #ocaml
<mnemonic> hi
bluestorm_ has quit ["Konversation terminated!"]
smimp has quit ["Lost terminal"]