Facebird has quit [Read error: Connection reset by peer]
Haudegen has quit [Remote host closed the connection]
djellemah has joined #ocaml
djellemah has quit [Ping timeout: 246 seconds]
ale64bit has joined #ocaml
ale64bit has quit [Ping timeout: 268 seconds]
oni-on-ion has joined #ocaml
unyu has joined #ocaml
freyr69 has quit [Remote host closed the connection]
ShalokShalom has quit [Read error: Connection reset by peer]
Jesin has quit [Quit: Leaving]
AtumT_ has joined #ocaml
AtumT has quit [Ping timeout: 246 seconds]
Jesin has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
Haudegen has joined #ocaml
kakadu has joined #ocaml
djellemah has joined #ocaml
AtumT has joined #ocaml
AtumT_ has quit [Ping timeout: 245 seconds]
jao has joined #ocaml
jao is now known as Guest35955
ale64bit has joined #ocaml
q9929t has joined #ocaml
Jesin has quit [Quit: Leaving]
oni-on-ion has quit [Remote host closed the connection]
picolino has quit [Ping timeout: 246 seconds]
ale64bit has quit [Ping timeout: 244 seconds]
picolino has joined #ocaml
Jesin has joined #ocaml
q9929t has quit [Quit: q9929t]
djellemah has quit [Ping timeout: 258 seconds]
Serpent7776 has joined #ocaml
picolino has quit [Ping timeout: 252 seconds]
picolino has joined #ocaml
tane has joined #ocaml
djellemah has joined #ocaml
barockobamo has quit [Remote host closed the connection]
jnavila has joined #ocaml
jnavila has quit [Ping timeout: 252 seconds]
cthuluh has quit [Ping timeout: 246 seconds]
cthuluh has joined #ocaml
djellemah has quit [Ping timeout: 258 seconds]
djellemah has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
jnavila has joined #ocaml
aciniglio has joined #ocaml
AtumT_ has joined #ocaml
AtumT has quit [Ping timeout: 258 seconds]
stillgar has joined #ocaml
gravicappa has quit [Ping timeout: 268 seconds]
<stillgar>
how to export fn for custom toplevel: I have let hello () = print_endline "Hello" in a .ml file and compiled it to .cmo and built the toplevel with ocamlmktop using this .cmo. But when I run the toplevel but the function is not visible (unbound value). What do I have to do to make it visible?
wklm_ has joined #ocaml
<octachron>
You need a cmi
<bartholin>
I like the three thousand different ocaml extensions
<bartholin>
.ml .mli .cmi .cmo .cma .cmx
ygrek_ has joined #ocaml
ygrek has quit [Remote host closed the connection]
<companion_cube>
cmxs cmt cmti
<stillgar>
I have a .mli with val hello : unit -> unit and compiled it to a .cmi but ocamlmktop cannot take .cmi
_whitelogger_ has joined #ocaml
jack5638 has joined #ocaml
kakadu has joined #ocaml
<ggole>
stillgar: the value will be bound under a module named after the file, eg, a.ml => A.hello
Serpent7776 has quit [Quit: leaving]
wilfredh has quit [Quit: Connection closed for inactivity]
<stillgar>
I can access the hello value now it says - : unit -> unit = <fun>
<stillgar>
How do I actually call this though?
<octachron>
hello ()
<stillgar>
dang, that gives me Segmentation fault: 11
nullifidian has quit [Read error: Connection reset by peer]
ale64bit has quit [Ping timeout: 245 seconds]
nullifidian has joined #ocaml
djellemah has quit [Ping timeout: 255 seconds]
wklm_ has quit [Ping timeout: 258 seconds]
<octachron>
Why not compile to bytecode rather than build a custom toplevel and then run a script?
ale64bit has joined #ocaml
<stillgar>
Editing text files und running them scripting style is just more convenient for simple programs and in my case learning ocaml too, just make a text file with #!/usr/bin/env ocamlrun ocaml and I'm good to go
<stillgar>
this works fine, I'm just trying to find a way to make this "batteries included" so I don't have to setup in each script