Taaus changed the topic of #ocaml to: http://caml.inria.fr/oreilly-book/
steele has joined #ocaml
nyoshi has joined #ocaml
nyoshi has quit [Client Quit]
<timmy> hmm i can't figure this Unbound class error
<timmy> figure out
libertair has joined #ocaml
<libertair> hello
libertair is now known as libertaire
<timmy> hi
<libertaire> french or english ?
<timmy> english
<libertaire> ok
<libertaire> so what do you do with ocaml ?
<timmy> i'm trying to learn it right now
<timmy> but i am stuck
<libertaire> oh i know it since a while ;)
<libertaire> (the ocaml of course)
<timmy> i have an Unbound class error
<timmy> but i defined the class in another file
<libertaire> did you import the file ? did you test in a toplevel ?
<timmy> i don't know how i'm supposed to import it
<timmy> i'm compiling natively
<libertaire> i always test my progs in a toplevel ... :)
<timmy> let me try, i think it might have worked
<libertaire> ok
<timmy> i think it works
<libertaire> simply make
<libertaire> open BLABLA
<timmy> oh
<libertaire> in the head of the file blibli which use the file bLABLA
<timmy> that works, thanks
<timmy> i thought i did it earlier without 'open' but i guess i was dreaming
<libertaire> i think too :)
<libertaire> but it is great to have dreams !!
<timmy> heh is there a function like String.split "a,b,c,d" ',' ==> ["a";"b";"c";"d"] ?
<steele> there is one in the pcre module, i don't know if there is one in the Str module included in the ocaml distribution
<timmy> ok i'll look it up
<timmy> pcre = Parsing?
<steele> % egrep "^val split" /usr/local/lib/ocaml/str.mli
<steele> val split : regexp -> string -> string list
<steele> val split_delim : regexp -> string -> string list
<steele> pcre is a binding to the perl comp. regular expressions c library
<timmy> cool
libertaire has quit []
steele has quit ["ircII EPIC4-1.0.1 -- Are we there yet?"]
Yurik has joined #ocaml
steele has joined #ocaml
scipient has quit [Read error: 110 (Connection timed out)]
<puffin> speaking of PCRE, I've extended it to support recursion
<puffin> gives you the same expressive power as context-free grammars (with a less readable syntax :-) )
musasabi has joined #ocaml
fsdfsdf has joined #ocaml
<steele> puffin: is the perl engine really so ugly? ;)
fsdfsdf has quit [Remote closed the connection]
fsdfsdf has joined #ocaml
fsdfsdf has quit [Remote closed the connection]
fsdfsdf has joined #ocaml
fsdfsdf has left #ocaml []
<puffin> steele: *oh* yes!
<puffin> it's been micro-optimised so much over the years that nobody understands it any more
fsdfsdf has joined #ocaml
fsdfsdf has left #ocaml []
<puffin> except possibly Ilya Zakharevich, who doesn't do much perl development any more...
<steele> i see
fsdfsdf has joined #ocaml
fsdfsdf has left #ocaml []
malc has joined #ocaml
nyoshi has joined #ocaml
nyoshi has quit [Client Quit]
gl has joined #ocaml
Yurik has quit ["Client Exiting"]
TimFreeman has joined #ocaml
* puffin is back
<puffin> no, the other one...
* puffin is away: home
Yurik has joined #ocaml
TimFreeman has left #ocaml []
<timmy> is there a way to tell ocaml that this record i'm making in { .. } is of type blah? because i have like record fields with the same names across records and it is getting all confused.. is having same names across records a no-no?
<timmy> i tried { .. }:blah but it doesn't notice it
<malc> timmy: names inside records have global scope
<malc> so its impossible to create fields with same names
<smkl> the record fields have module scope, just like sum-type constructors
<smkl> people are always confused about how to use records, but never about how to use sums. probably because other languages have records but not sums
Yurik has quit ["home"]
<malc> smkl: actually masm has(unless some switch used) same semantics
<malc> but those days one can hardly rely on peoples asm skillz
<malc> those = these (or.. sigh)
steele has quit [""]
xtrm has joined #ocaml
<xtrm> Hello World\n
<malc> dont expect answer
<malc> oh duh
<xtrm> malc: World is out of order ?
TimFreeman has joined #ocaml
TimFreeman has left #ocaml []
<malc> channel is
<xtrm> everybody seems to work
<xtrm> the last commit for me and poff
<malc> at this hour? only nuts
<xtrm> not really nuts but some basic features (applying patches...)
<malc> patches for..?
<xtrm> bindings for sdl lib
<malc> OcamlSDL or something else?
<xtrm> yes
<malc> smkl here is its author if im not mistaken
<xtrm> yes he is
<xtrm> the 0.5 will be 0.6 soon
<xtrm> mandrake and debian package will be done
<malc> nice, too bad i have no use for it, however i might port one small app to OcamlSDL
<xtrm> i hope someone could use it to develop game
<malc> well Chris Hecker is doing a game in OCaml, no idea if he uses SDL though
<xtrm> i think he uses open gl
<xtrm> must poff
<xtrm> see you
<malc> ta
xtrm has quit ["BitchX: the fizzle goes straight to your brain!"]
scipient has joined #ocaml