<
pac_aw>
mattam: for object to ?
<
pac_aw>
mattam: for object too ?
pac_aw is now known as pac_
<
pac_>
mattam: any ocaml package like jdbc in Java ?
Axio|Away is now known as Axioplase
<
mattam>
a lot, look at the caml humps
<
pac_>
mattam: i am looking for a general SQL binding db independant
<
mattam>
there's ocamlodbc, ocamldb
<
mattam>
also Dbi which is the most advanced wrapper i think
reltuk has joined #ocaml
<
mattam>
what do you mean by 'for objects too' ? you can't have operators as method names
<
pac_>
mattam: supposed I want to be able like in c++ to write this p3 = p1+p2 where p3,p2 and p2 are Point3D objects
<
pac_>
that's not possible in OCAML
<
mattam>
no, indeed
<
pac_>
so what alternative do I have ? (ocamlodbc link is dead.)
<
pac_>
where may I found an example of operator redefinition ?
<
mattam>
# let (+) x y = x - y;;
<
mattam>
val ( + ) : int -> int -> int = <fun>
<
mattam>
- : int = 0
<
mellum>
Not terribly useful.
<
pac_>
mattam: ok thanks but not a chance for object ?
<
mattam>
but operator redefinition is rarely needed (that may be because i don't use objects often)
<
pac_>
so il will need something like that
<
pac_>
p3 = p1.add(p2)
<
mattam>
it's called a binary method, and you'll need to read about it in the ocaml manual (chapter 3) to define it
<
pac_>
mattam: let me see.
<
mattam>
it's just a trick for the typing
<
pac_>
mattam: what abou ruby ?
<
mattam>
what ? ruby ?
<
pac_>
mattam: sorry gentoofr
CosmicRay has quit [Read error: 113 (No route to host)]
pac_ is now known as pac_dvd
yauz_ has joined #ocaml
yauz has quit [Read error: 60 (Operation timed out)]
Smerdyakov has joined #ocaml
Axioplase has quit ["error 8.6 (Connection reset by beer)"]
GreyLensman has quit ["Leaving"]
cmeme has quit [Remote closed the connection]
cjohnson has quit [Read error: 60 (Operation timed out)]
cmeme has joined #ocaml
ne1 has quit ["To understand recursion, you must first understand recursion."]
CosmicRay has joined #ocaml
cjohnson has joined #ocaml
pac_dvd is now known as pac_
pac_ has quit ["leaving"]
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
Herrchen has joined #ocaml
Herrchen_ has quit [Read error: 110 (Connection timed out)]
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
CosmicRay has quit ["Client exiting"]
vezenchio has joined #ocaml
cjohnson has quit [Connection timed out]
cjohnson has joined #ocaml
<
yella>
somebody using spamoracle?
<
yella>
would it be possible to setup a mail alias defined as follows:
<
yella>
spam-someuser: "|'spamoracle' add -spam"
<
yella>
so when a spam gets thru i can simply forward it ?
kinners has joined #ocaml
_fab has joined #ocaml
smimou has joined #ocaml
kinners has quit ["leaving"]
vezenchio has quit ["<lus|wats> wer soll "rehakles" denn sein bitteschön?? :|"]
vezenchio has joined #ocaml
Iter has joined #ocaml
<
mattam>
yella: sure, you can also dedicate a folder to spam and periodically add it to your database
<
Banana>
hello there.
bk_ has joined #ocaml
reltuk has quit ["sweet sweet sleep..."]
yauz_ is now known as yauz
<
yella>
mattam: but when i forward it spamoracle also processes my mail header and body, instead of just the attached spam
<
yella>
so are you sure a forward does not alter the spamoracle.db in a negative sense
<
mattam>
you're probably right
<
mattam>
spamoracle could check if the message was already processed though
<
mattam>
nm, it won't realize it is a forward anyway
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
sundeep has quit [Client Quit]
<
yella>
mattam: yep
<
yella>
a 'process only attachments' flag would be nice
Iter has quit [Read error: 110 (Connection timed out)]
ne1 has joined #ocaml
greenrd has quit [Read error: 60 (Operation timed out)]
<
yella>
I often struggle over the infered type within a try..with and the returned type of the whole function...
Lemmih has quit [Read error: 60 (Operation timed out)]
<
yella>
and it's not very easy to debug aswell in more complex programs
<
yella>
e.g. i would expect that this function works:
<
yella>
let blem () =
<
yella>
let args = List.tl (Array.to_list Sys.argv) in
<
yella>
let file = List.hd args in
<
yella>
let name = List.hd (List.tl args)
<
yella>
with Failure _ -> Printf.printf "failed\n";
<
yella>
Printf.printf "end\n"
<
yella>
why does the compiler/interpreter not say "infered types do not match" or something...
<
mattam>
let name = List.hd (List.tl args) ??
<
mattam>
there's a missing in
pac_away has joined #ocaml
pac_away is now known as pac_
FredCods has quit [orwell.freenode.net irc.freenode.net]
FredCods has joined #ocaml
maihem has quit ["Read error: 54 (Connection reset by chocolate)"]
root has joined #ocaml
root is now known as dobrek
dobrek has quit [Client Quit]
dobrek has joined #ocaml
smimou has quit ["?"]
smimou has joined #ocaml
dobrek has quit ["Lost terminal"]
Hipo has joined #ocaml
GreyLensman has joined #ocaml
greenrd has joined #ocaml
greenrd has quit ["User disconnected"]
greenrd has joined #ocaml
gim has joined #ocaml
Lemmih has joined #ocaml
Axioplase has joined #ocaml
pnou has joined #ocaml
mattam_ has joined #ocaml
mattam has quit [Read error: 60 (Operation timed out)]
mattam_ is now known as mattam
maihem has joined #ocaml
Axioplase is now known as Axio|away
Vulpyne has quit [Remote closed the connection]
buggs^z has joined #ocaml
Iter has joined #ocaml
buggs has quit [Read error: 60 (Operation timed out)]
smimou has quit ["?"]
mpathy has joined #ocaml
<
mpathy>
Hello! I wanna know something about this language - am I right here? :o)
<
mpathy>
seems, not..
mpathy has quit ["[BX] Reserve your copy of BitchX-1.0c20cvs for the Amiga today!"]
<
pac_>
lol you all scared de little guy !!!
<
ne1>
With a minute of silence? Ha!
<
pac_>
ne1: yeah :))
buggs^z is now known as buggs
bk_ has joined #ocaml
reltuk has joined #ocaml
pac_ is now known as pac_miam
Axio|away is now known as Axioplase