<
pnou_>
« hi » engstad
<
pnou_>
so you're a caml user?
gl has quit [Read error: 113 (No route to host)]
<
engstad>
not very good tho
<
pnou_>
what did you program with it?
<
engstad>
just a little optimizer used at work
<
pnou_>
an optimiser?
<
engstad>
Using Facile, a constraints-based solver.
engstad has left #ocaml []
skylan has joined #ocaml
smklsmkl has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
pnou_ has quit ["BitchX-1.0c18 -- just do it."]
pnou has joined #ocaml
mrvn has joined #ocaml
<
mrvn>
In a.ml I have a variable of type t. In b.ml I have a function f that takes type A.t. How can I can call f from inside a?
<
mrvn>
Or how do I convert a t into A.t?
<
pnou>
you can't, that is a cyclic dependency
<
pnou>
you should put your abstract type t in a different module with all its accesors so you can do that
<
mrvn>
I hate cyclic dependency.
mrvn has left #ocaml []
smklsmkl is now known as smkl
mattam has joined #ocaml
moo has joined #ocaml
stan has joined #ocaml
moo has quit [Remote closed the connection]
smkl has quit [Remote closed the connection]
smklsmkl has joined #ocaml
TachYon25 has joined #ocaml
xtrm is now known as xtrmzZzZ
smklsmkl is now known as smkl
skylan has quit [card.freenode.net irc.freenode.net]
xtrmzZzZ has quit [card.freenode.net irc.freenode.net]
jankr has quit [card.freenode.net irc.freenode.net]
skylan has joined #ocaml
xtrmzZzZ has joined #ocaml
jankr has joined #ocaml
jankr has quit [card.freenode.net irc.freenode.net]
xtrmzZzZ has quit [card.freenode.net irc.freenode.net]
skylan has quit [card.freenode.net irc.freenode.net]
skylan has joined #ocaml
xtrmzZzZ has joined #ocaml
jankr has joined #ocaml
stan has quit ["Client Exiting"]
malc has joined #ocaml
gl has joined #ocaml
malc has quit [Read error: 110 (Connection timed out)]
jankr has quit [card.freenode.net irc.freenode.net]
xtrmzZzZ has quit [card.freenode.net irc.freenode.net]
skylan has quit [card.freenode.net irc.freenode.net]
skylan has joined #ocaml
xtrmzZzZ has joined #ocaml
jankr has joined #ocaml
smkl has quit [Read error: 104 (Connection reset by peer)]
smklsmkl has joined #ocaml
malc has joined #ocaml
<
malc>
heh my bot's awesome strategy forced bsm to segfault
smklsmkl has quit [Read error: 54 (Connection reset by peer)]
smklsmkl has joined #ocaml
smklsmkl is now known as smkl
malc has quit ["no reason"]
smkl has quit [card.freenode.net irc.freenode.net]
jankr has quit [card.freenode.net irc.freenode.net]
xtrmzZzZ has quit [card.freenode.net irc.freenode.net]
skylan has quit [card.freenode.net irc.freenode.net]
smkl has joined #ocaml
skylan has joined #ocaml
xtrmzZzZ has joined #ocaml
jankr has joined #ocaml
physarum has joined #ocaml
gene9 has joined #ocaml
gene9 has quit [Read error: 104 (Connection reset by peer)]
cleverdra has joined #ocaml
mattam has quit [Remote closed the connection]
cleverdra has quit ["Leaving"]
thierry has quit ["[x]chat"]
TachYon76 has joined #ocaml
TachYon25 has quit [Read error: 113 (No route to host)]
cleverdra has joined #ocaml
karryall has quit ["bye .."]
kmj has joined #ocaml
<
kmj>
hello, anyone around?
<
kmj>
got time for a quick question? :)
<
kmj>
when I C&P it into the interpreter, I get a syntax error.
<
kmj>
on the last line "Characters 1-2: ....(line)... Syntax error"
<
kmj>
dunno if I'm doing anything wrong, this is my first foray into ml type languages.
<
pnou>
what did you paste exactly?
<
pnou>
from `let' to `;;' ?
<
kmj>
for the sort and insert functions
<
pnou>
what version of ocaml do you use?
<
kmj>
I just dl'd it like a half hour ago. :)
<
pnou>
you must have paste something wrong
<
kmj>
okay, thanks.
<
kmj>
can I post three lines of code, and you tell me if you see anything wrong?
<
kmj>
let rec insert elem = function
<
kmj>
| [] -> [elem]
<
kmj>
| x :: l -> if elem < x then elem :: x :: l else x :: insert elem l;;
<
kmj>
(I'm trying to define 'insert' first, and then use it in 'sort')
<
pnou>
it works fine
<
kmj>
umm.. I'm starting to wonder about the windows interface for O'Caml. :)
<
kmj>
I just opened the "help.. about" box, and there's no way to close it! :)
<
kmj>
so, lemme try that again on the command line.
<
pnou>
well maybe you should use the command line toplevel :)
<
pnou>
don't give up, it's an excellent language :)
<
kmj>
heh, great. works fine in the command line. That's the last time I use the windows interface!
<
kmj>
thanks for your help.
<
kmj>
I've heard alot about it, just never got around to trying it. I imagine gnuvince and jemfinch hang around here sometimes.
<
pnou>
you're welcome
cleverdra has quit ["Leaving"]
<
kmj>
yup; apparently it's a documented problem with the gui interface.
<
pnou>
and what is the problem?
<
kmj>
apparently when you paste multiple lines, it only really sees the last line.
<
kmj>
thanks again!
kmj has left #ocaml []
two-face has joined #ocaml
gl has quit [Read error: 104 (Connection reset by peer)]
tmcm has quit ["using sirc version 2.211+ssfe"]
owll has joined #ocaml
two-face has quit ["Client Exiting"]
owll has quit ["Client Exiting"]
Dybbuk has joined #ocaml