smkl changed the topic of #ocaml to: OCaml 3.06 released: http://caml.inria.fr/ocaml/distrib.html | http://www.ocaml.org/ | http://caml.inria.fr/oreilly-book/ | http://icfp2002.cs.brown.edu/ | SWIG now supports OCaml
<pnou_> « hi » engstad
<engstad> greets
<pnou_> so you're a caml user?
gl has quit [Read error: 113 (No route to host)]
<engstad> yupp
<engstad> not very good tho
<pnou_> what did you program with it?
<engstad> just a little optimizer used at work
<pnou_> an optimiser?
<engstad> Yes.
<engstad> Using Facile, a constraints-based solver.
<pnou_> mmm ok
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> hi
<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> thx
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
<smkl> hello malc
<malc> lo smkl
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?
<pnou> yep
<kmj> got time for a quick question? :)
<pnou> sure
<kmj> http://caml.inria.fr/FAQ/exemples-eng.html - regarding the insertion sort example here.
<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> yeah
<kmj> for the sort and insert functions
<pnou> hum
<pnou> what version of ocaml do you use?
<kmj> 3.06
<pnou> hum
<kmj> I just dl'd it like a half hour ago. :)
<pnou> you must have paste something wrong
<kmj> hmm
<kmj> okay, thanks.
<kmj> can I post three lines of code, and you tell me if you see anything wrong?
<pnou> ok
<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> :)
<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.
<pnou> erk
<kmj> thanks again!
kmj has left #ocaml []
two-face has joined #ocaml
<two-face> yo
<two-face> pnou: ?
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> bye
two-face has quit ["Client Exiting"]
owll has quit ["Client Exiting"]
Dybbuk has joined #ocaml