schmx has quit [Read error: 60 (Operation timed out)]
schmx has joined #ocaml
jeddhaberstro has quit [Client Quit]
jeddhaberstro has joined #ocaml
maskd has quit [hubbard.freenode.net irc.freenode.net]
anders^^ has quit [hubbard.freenode.net irc.freenode.net]
nimred has quit [hubbard.freenode.net irc.freenode.net]
poucet has quit [hubbard.freenode.net irc.freenode.net]
deavid has quit [hubbard.freenode.net irc.freenode.net]
lanaer has quit [hubbard.freenode.net irc.freenode.net]
anders^^ has joined #ocaml
nimred has joined #ocaml
poucet has joined #ocaml
maskd has joined #ocaml
lanaer has joined #ocaml
deavid has joined #ocaml
maskd has quit [hubbard.freenode.net irc.freenode.net]
poucet has quit [hubbard.freenode.net irc.freenode.net]
deavid has quit [hubbard.freenode.net irc.freenode.net]
lanaer has quit [hubbard.freenode.net irc.freenode.net]
anders^^ has quit [hubbard.freenode.net irc.freenode.net]
nimred has quit [hubbard.freenode.net irc.freenode.net]
svenl has quit [hubbard.freenode.net irc.freenode.net]
deavid has joined #ocaml
lanaer has joined #ocaml
maskd has joined #ocaml
poucet has joined #ocaml
nimred has joined #ocaml
anders^^ has joined #ocaml
svenl has joined #ocaml
peddie has joined #ocaml
peddie_ has quit [Read error: 110 (Connection timed out)]
jeddhaberstro has quit [Client Quit]
marteo has joined #ocaml
holmak has joined #ocaml
holmak has quit ["Leaving"]
yttrium has joined #ocaml
<yttrium>
Trying to setup ocaml. I was installing findlib, and get this: http://pastebin.org/3922
smimou has joined #ocaml
gdmfsob is now known as mishok13
angerman has joined #ocaml
angerman has quit []
_zack has joined #ocaml
Snark has joined #ocaml
angerman has joined #ocaml
angerman_ has joined #ocaml
angerman has quit [Read error: 60 (Operation timed out)]
julm has quit [Read error: 60 (Operation timed out)]
smimou has quit ["bli"]
verte has joined #ocaml
julm has joined #ocaml
Jedai has joined #ocaml
hkBst has joined #ocaml
<yziquel>
hi. imagine i have "class name = object val x = 1 method y = 2 end". How can I hide x and y from appearing in the .mli file?
Snark has quit [Remote closed the connection]
<wysek>
what do you mean? it's you who edit .mli file
Modius_ has quit [Client Quit]
Modius has joined #ocaml
<yziquel>
wysek: yes. I'm editing the .mli file. I want to have in the .ml file "class virtual name = object val virtual u : int end;;" and "class name_0 = object inherit name val u = 1 end;;". In the .mli file, I want "class virtual name : object end" and "class name_0 : name".
<yziquel>
wysek: but i get a "class declarations do not match" between .ml and .mli files. "The virtual instance variable u cannot be hidden."
angerman_ has quit []
marmottine has joined #ocaml
<flx_>
I've never used virtual values :-o
<flx_>
yziquel, maybe the problem is that 'val virtual u' isn't the same as 'val u'
<flx_>
oh, right
<flx_>
never mind, the problem might be exactly what it says
<flx_>
yziquel, do you need to expose 'name' at all?
<flx_>
class type name : object end class name_0 : name in the .mli
<flx_>
class virtual name_virt = object val virtual u : int end class type name : object end class name_0 = object inherit name_virt val u = 1 end ?
<yttrium>
er, once more: trying to setup ocaml, I was installing findlib, and get this: http://pastebin.org/3922
angerman has joined #ocaml
<yziquel>
yttrium: how did you generate the findlib.cma file?
<yziquel>
flx_: http://ocaml.pastebin.com/m5f993b1f I'm trying to create a swig module. As C++ objects may have different constructors, I'm trying to wrap the object in a virtual class, and create the constructors through a standard class. As you can see in the pastebin, there's a fields, underlying_cpp_object, that I wish to hide in the .mli file. In the .mli file, I need a class for each constructor, that must inherit from a virtual class
<yziquel>
flx_: so I need a type class, and a type abreviation for the OCaml object.
<yziquel>
flx_: that's why I feel I need to expose 'name' or 'tokenizer' in the .mli.
<yziquel>
flx_: i like the example you proposed, but I also need a type abreviation of the same name as the class type.
<yziquel>
kaustuv: reading your link.
<yziquel>
kaustuv: thanks. type classes define type abreviations. I think that is what i need.
seafood has quit []
Amorphous has quit [Read error: 104 (Connection reset by peer)]
yziquel has quit [Ping timeout: 180 seconds]
Amorphous has joined #ocaml
_andre has joined #ocaml
ulfdoz has joined #ocaml
yziquel has joined #ocaml
<yttrium>
er hello again
<yttrium>
i just did ./configure and make for findlib
<yttrium>
yziquel:
<yziquel>
yttrium: not familiar with compiling findlib by hand. If you can use the packaging system of your distribution, please do.
<raboof>
i installed netclient (from the debian package), and tried to run '/usr/share/doc/libocamlnet-ocaml-doc/examples/netclient/simple/http_get.ml'
<raboof>
this starts with '#require "netclient";;', but when i type that on the 'ocaml' prompt i get "Unknown directive `require'."
yziquel has quit [hubbard.freenode.net irc.freenode.net]