stefp has quit [Read error: 110 (Connection timed out)]
stefp has joined #ocaml
Kinners has joined #ocaml
Kinners has left #ocaml []
lament has joined #ocaml
lament has quit [Connection timed out]
__DL__ has quit [Remote closed the connection]
lowks has quit [calvino.freenode.net irc.freenode.net]
lowks has joined #ocaml
lowks has quit [calvino.freenode.net irc.freenode.net]
lowks has joined #ocaml
lowks has quit [calvino.freenode.net irc.freenode.net]
lowks has joined #ocaml
docelic|sleepo is now known as docelic
lowks has quit [Read error: 104 (Connection reset by peer)]
mattam has joined #ocaml
foxster has joined #ocaml
foxen has quit [Read error: 110 (Connection timed out)]
docelic is now known as docelic|away
asqui has quit [Read error: 60 (Operation timed out)]
asquii has joined #ocaml
asqui has joined #ocaml
asquii has quit [Connection reset by peer]
__DL__ has joined #ocaml
asqui has quit [Connection reset by peer]
jtra has joined #ocaml
<jtra>
Hello. Is ocaml byte code usable as target from another language? Is it well documented and stable?
karryall has joined #ocaml
systems has joined #ocaml
systems has quit [Remote closed the connection]
<__DL__>
jtra: yes no and yes (I mean yes it can be a target, it is no "well documented" but you could found some documentation, and it is relativly stable (at least for the "core" part).
<__DL__>
and the byterun/interp.c file of the ocaml source...
<__DL__>
and ocaml -dinstr (or ocamlc -dinstr) to see how ocaml generate it
lam has joined #ocaml
gene9 has quit ["Client exiting"]
<jtra>
__DL__: Thanks again. I have to go.
jtra has left #ocaml []
asqui has joined #ocaml
drlion has joined #ocaml
<drlion>
is it possible to get a reference to a no-argument method? e.g, i have a method called initialize and i want to pass it to Thread.create. i'm thinking since initialize takes no arguments it must not be a function, yet it's capable of, e.g., running imperative code. can you help me get this straight?
asquii has joined #ocaml
systems has joined #ocaml
asqui has quit [Read error: 110 (Connection timed out)]
asquii is now known as asqui
<karryall>
drlion: use smthg like Thread.create (fun obj -> obj#initialize) obj
systems has quit ["Client Exiting"]
<__DL__>
drlion : or you can use fun () -> obj #meth
<Smerdyakov>
A meth lab??
<__DL__>
by the way, lablgtk/lablgtk2 use the following convetion : a method with no arument have no side effect
<__DL__>
(meth is a name for a method ... not a meth lab...)
lus|wazze has joined #ocaml
<drlion>
__DL__: ah. so they would pass a unit just to indicate side effects?
<drlion>
karryall: thanks!
stef_ has joined #ocaml
giedi has joined #ocaml
stefp has quit [Read error: 110 (Connection timed out)]
<drlion>
what's the difference between an immutable val and a let binding wrapping object?
<Riastradh>
Rephrase, please.
<drlion>
nothing like an example: class foo = let x = 123 in object val y = 123 method m1 = x method m2 = y end
<drlion>
i just don't see the reason to use immutable fields, but obviously i'm missing something
<Riastradh>
Well, does it look nicer to you to use 'val' for mutable fields and 'let' for immutable fields?
<drlion>
not really, no, but since i sometimes cannot use 'val' -- and have to use 'let' outside the 'object .. end' -- i realized i don't know why i ever use 'val' in the first place
<Riastradh>
What cases can you not use 'val' in?
<drlion>
let's say i need to use one val to define another
<Riastradh>
You can't use 'and' with 'val'?
<Riastradh>
I guess not...
<drlion>
no, but that wouldn't really help anyway. in that case i would need something like val foo = 123 in val bar = foo + 2
<drlion>
so instead i do class foo = let foo = 123 in let bar = foo + 2 in object .. end