dan2 changed the topic of #ocaml to: OCaml 3.08.2 available! | Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
cjohnson has joined #ocaml
senko has quit [Read error: 104 (Connection reset by peer)]
senko has joined #ocaml
smkl has quit [Read error: 60 (Operation timed out)]
smkl has joined #ocaml
jenny_ahibdda has joined #ocaml
cjohnson has quit [Read error: 60 (Operation timed out)]
jenny_ahibdda has left #ocaml []
<Excedrin> what's the difference between a class and module?
<mrvn_> a class is an OO object. A module is like a namespace
stef has joined #ocaml
<Excedrin> it seems like it's possible to write OO code with only the module system
<Excedrin> not that class doesn't provide some nice syntax for it
<Riastradh> That would depend on your definition of 'OO.'
<mrvn_> Excedrin: but you can't create an instance of a module itself.
<mrvn_> The module can define a type (or class) that you can instanciate (or whatever you call it).
<senko> speeking of modules, is there a way to chose modules at runtime?
<senko> or change..
<mrvn_> only at link time.
<senko> ok..
<Excedrin> mrvn_: that's what I was thinking (module defining a type, etc)
gim has quit []
<mrvn_> Excedrin: The problem with doing OO with modules and types is that you have to do function dispatching and casts on your own.
<mrvn_> A class foo can inherit class bar which means foo is a bar. With modules and types that takes a lot of extra work.
cjohnson has joined #ocaml
CosmicRay has joined #ocaml
smkl_ has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
CosmicRay has quit ["Leaving"]
cjohnson has quit [Read error: 54 (Connection reset by peer)]
tintin has quit [Read error: 104 (Connection reset by peer)]
tintin has joined #ocaml
tintin has quit [Remote closed the connection]
tintin has joined #ocaml
monochrom has joined #ocaml
smkl_ has quit [tolkien.freenode.net irc.freenode.net]
pango has quit [tolkien.freenode.net irc.freenode.net]
xqw has quit [tolkien.freenode.net irc.freenode.net]
pnou has quit [tolkien.freenode.net irc.freenode.net]
dd_ has quit [tolkien.freenode.net irc.freenode.net]
haakonn has quit [tolkien.freenode.net irc.freenode.net]
dan2 has quit [tolkien.freenode.net irc.freenode.net]
mrvn_ has quit [tolkien.freenode.net irc.freenode.net]
oracle1 has quit [tolkien.freenode.net irc.freenode.net]
Hipo has quit [tolkien.freenode.net irc.freenode.net]
cmeme has quit [tolkien.freenode.net irc.freenode.net]
skylan has quit [tolkien.freenode.net irc.freenode.net]
judge has quit [tolkien.freenode.net irc.freenode.net]
senko has quit [tolkien.freenode.net irc.freenode.net]
calvin_ has quit [tolkien.freenode.net irc.freenode.net]
noj has quit [tolkien.freenode.net irc.freenode.net]
avn has quit [tolkien.freenode.net irc.freenode.net]
Hadaka has quit [tolkien.freenode.net irc.freenode.net]
CLxyz has quit [tolkien.freenode.net irc.freenode.net]
smkl_ has joined #ocaml
senko has joined #ocaml
pango has joined #ocaml
xqw has joined #ocaml
oracle1 has joined #ocaml
mrvn_ has joined #ocaml
dan2 has joined #ocaml
CLxyz has joined #ocaml
cmeme has joined #ocaml
skylan has joined #ocaml
haakonn has joined #ocaml
Hipo has joined #ocaml
dd_ has joined #ocaml
pnou has joined #ocaml
judge has joined #ocaml
Hadaka has joined #ocaml
avn has joined #ocaml
noj has joined #ocaml
calvin_ has joined #ocaml
Submarine has joined #ocaml
zzorn_afk has quit ["They are coming to take me away, ha ha"]
tintin has quit [Read error: 104 (Connection reset by peer)]
vezenchio has joined #ocaml
mrvn has joined #ocaml
mrvn_ has quit [Read error: 110 (Connection timed out)]
__DL__ has quit [Remote closed the connection]
monochrom has quit ["Few people understand "understanding"."]
Submarine has quit ["Leaving"]
kinners has joined #ocaml
__DL__ has joined #ocaml
__DL__ has left #ocaml []
tintin has joined #ocaml
smimou has joined #ocaml
kinners has quit ["leaving"]
stef has quit [Read error: 54 (Connection reset by peer)]
stef has joined #ocaml
Herrchen has joined #ocaml
smkl_ has quit [Read error: 110 (Connection timed out)]
smkl_ has joined #ocaml
_fab has quit [Remote closed the connection]
smkl_ has quit [Read error: 60 (Operation timed out)]
cjohnson has joined #ocaml
Chiii has joined #ocaml
Inspico has quit [Read error: 60 (Operation timed out)]
_JusSx_ has joined #ocaml
<_JusSx_> hey how to use a module like Str in an interactive way??
<_JusSx_> thanx i found it
_fab has joined #ocaml
gim has joined #ocaml
smkl_ has joined #ocaml
smkl_ is now known as smkl
stef has quit [Nick collision from services.]
stef_ has joined #ocaml
vezenchio has quit ["Greenspun's Tenth Rule of Programming: any sufficiently complicated C or Fortran program contains an ad hoc informally-specif]
vezenchio has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
zzorn has joined #ocaml
stef_ has quit [Read error: 60 (Operation timed out)]
stef_ has joined #ocaml
smkl has joined #ocaml
pango is now known as pangoafk
cjohnson has quit [Read error: 104 (Connection reset by peer)]
pangoafk is now known as pango
smkl has quit [Read error: 110 (Connection timed out)]
monochrom has joined #ocaml
_fab has quit []
Herrchen has quit ["bye"]
_JusSx__ has joined #ocaml
pango has quit [Nick collision from services.]
pango has joined #ocaml
zygomatik has joined #ocaml
_JusSx_ has quit [Read error: 110 (Connection timed out)]
<zygomatik> a beginner question : how to create a .cma file ?
smkl has joined #ocaml
humasect has joined #ocaml
<monochrom> ocamlc -a
Submarine is now known as SubbyDinner
zzorn has quit [Read error: 60 (Operation timed out)]
zzorn has joined #ocaml
Smerdyakov has joined #ocaml
__DL__ has joined #ocaml
CapNemo has joined #ocaml
<CapNemo> Hello :) someone knows how to use the regexp of Str ?
<Riastradh> If you have a more specific question, just ask it. If there is some such person, he'll probably answer it.
vezenchio has quit ["Greenspun's Tenth Rule of Programming: any sufficiently complicated C or Fortran program contains an ad hoc informally-specif]
<CapNemo> in fact i try to split a string using a regexp .. but when i try to use Str.regexp it answers : i dunno Str !
<Riastradh> #load "str.cma";;
<CapNemo> Riastradh, oki but why i have to load Str for this function only .. the Str.split is working and exists
<Riastradh> Str is not loaded by default. If you want to use it, you have to load it.
<CapNemo> open Str is not enough ?
<Riastradh> No, because the module isn't loaded, so it's not there yet.
<Riastradh> open just makes all of its bindings available in the enclosing environment.
<CapNemo> oh !
<CapNemo> didnt know
<CapNemo> is it the same for each standard modules of ocaml ?
<Riastradh> No. Some are loaded by default; some are not.
<CapNemo> oki thanks a lot Riastradh
<humasect> setjmp() and C code with ocaml..
<Riastradh> ...no.
<CapNemo> Riastradh, i have put the #load "str.cma";; in my module but the compiler said : error !
<humasect> that's for toplevel
<humasect> add str.cma into the ocaml command
<Riastradh> #load is a command that works only at the REPL. There are other ways to link your program against str.cma, however; as humasect suggests, you can pass it to ocaml (or ocamlc, or ocamlopt, &c.).
<CapNemo> toplevel ?
<humasect> toplevel/REPL
<Riastradh> Read-eval-print loop.
<Riastradh> The thing with the # prompt that reads your input, evaluates it, and prints the results.
SubbyDinner is now known as Submarine
XEN has joined #ocaml
<CapNemo> someone knows this error ? -> Error on dynamically loaded library: dllstr.so: cannot open shared object file: No such file or directory
<Riastradh> Hint: 'no such file or directory' means that the file with the given name doesn't exis.t
<CapNemo> str.cma exists and i have put -I /usr/lib/ocaml
<Riastradh> str.cma is not what's in question; dllstr.so is.
<Smerdyakov> Did you read the manual for the str library?
<CapNemo> i didnt find a section about
<CapNemo> oh need to go bye bye
XEN has quit [Read error: 104 (Connection reset by peer)]
_shawn has quit ["Leaving"]
monochrom has quit ["Few people understand "understanding"."]
humasect has quit [Read error: 104 (Connection reset by peer)]
humasect has joined #ocaml
cjohnson has joined #ocaml
humasect_ has joined #ocaml
humasect has quit [Read error: 54 (Connection reset by peer)]
humasect_ has quit [Read error: 54 (Connection reset by peer)]
humasect has joined #ocaml
smkl has quit [Read error: 110 (Connection timed out)]
mrvn_ has joined #ocaml
Submarine has quit ["Leaving"]
smkl has joined #ocaml
mrvn has quit [Read error: 110 (Connection timed out)]
ne1 has joined #ocaml
xol has joined #ocaml