mrvn has quit [Read error: 145 (Connection timed out)]
cjohnson has quit [""We live like penguins in the desert...""]
vdrab has joined #ocaml
Herrchen_ has joined #ocaml
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: 60 (Operation timed out)]
Herrchen has quit [Read error: 110 (Connection timed out)]
vdrab has left #ocaml []
epichrom has quit ["What is the meaning of "meaning"?"]
Sonarman has quit ["leaving"]
roadgo has joined #ocaml
roadgo has left #ocaml []
Submarine has joined #ocaml
Submarine_ has joined #ocaml
Submarine_ has quit ["Leaving"]
Herrchen_ has quit ["brb"]
<ulfdoz_>
rø
Herrchen has joined #ocaml
__DL__ has joined #ocaml
pango__ has quit [Remote closed the connection]
<vincenz>
hello
mlh has quit [Client Quit]
<haakonn_>
if you use the module language to define module Foo in file foo.ml, one has to refer to it as Foo.Foo instead of just Foo. any way to avoid this, since it's not exactly what i intended?
<vincenz>
yes
<vincenz>
not place module Foo = struct ... end in your file
<vincenz>
that's implicitly assumed by the fact that the file is named foo.ml
<haakonn_>
i suppose ...
smimou has joined #ocaml
araujo has joined #ocaml
Submarine is now known as HerrDoktorSub
HerrDoktorSub is now known as Submarine
Snark has joined #ocaml
vezenchio has joined #ocaml
Snark has quit ["Leaving"]
_JusSx_ has joined #ocaml
_JusSx_ has quit ["leaving"]
vodka-goo has joined #ocaml
cognominal has quit [Remote closed the connection]
cognominal has joined #ocaml
Snark has joined #ocaml
maw has quit [Nick collision from services.]
maw has joined #ocaml
maw has quit [Nick collision from services.]
_fab has joined #ocaml
_fab has quit [Remote closed the connection]
araujo has quit ["Programs must be written for people to read, and only incidentally for machines to execute"]
_andre has joined #ocaml
<_andre>
hello
<_andre>
is there a function to transform a one-character string into a char?
<smimou>
s.[0]
<smimou>
where s is the string
<_andre>
d'oh
<_andre>
:P
<_andre>
thanks
cjohnson has joined #ocaml
vodka-goo has quit ["sans honte"]
Skal has joined #ocaml
mrvn has joined #ocaml
mrvn__ has joined #ocaml
mrvn_ has quit [Read error: 60 (Operation timed out)]
mrvn has quit [Read error: 60 (Operation timed out)]
araujo has joined #ocaml
_JusSx_ has joined #ocaml
_JusSx_ has quit ["leaving"]
mflux has quit [niven.freenode.net irc.freenode.net]
Msandin has joined #ocaml
TeXitoi has quit [Read error: 54 (Connection reset by peer)]
TeXitoi has joined #ocaml
mflux has joined #ocaml
vodka-goo has joined #ocaml
Gueben has joined #ocaml
_JusSx_ has joined #ocaml
pango has joined #ocaml
vezenchio has quit [""Under democracy one party always devotes its chief energies to trying to prove that the other party is unfit to rule—and bot]
<vodka-goo>
how do I specify that some method cannot be redefined by child classes ?
<mauke>
why?
Gueben has quit ["WiNdOz R0xOr dA w0R1d"]
<vodka-goo>
It would enforce some design I chose for my software
<vodka-goo>
I define a virtual class, expected to be extended as many plugins
<vodka-goo>
but some things should never be changed, they are part of a protocol
<vodka-goo>
if caml can check that for me, it would be better
_JusSx__ has joined #ocaml
<Snark>
vodka-goo: in eiffel, it's with the "frozen" keyword
<Snark>
but that doesn't answer the question, I guess
_JusSx_ has quit ["leaving"]
<vodka-goo>
Snark: thanks, better than nothing
<vodka-goo>
I think frozen is the good concept
_JusSx__ has quit ["leaving"]
_JusSx_ has joined #ocaml
_JusSx_ has quit [Client Quit]
_JusSx_ has joined #ocaml
_JusSx_ has quit [Client Quit]
_JusSx_ has joined #ocaml
_JusSx_ has quit [Client Quit]
_JusSx_ has joined #ocaml
_JusSx_ has quit [Client Quit]
_JusSx_ has joined #ocaml
_JusSx_ has quit [Client Quit]
Msandin has quit [Read error: 60 (Operation timed out)]
_JusSx_ has joined #ocaml
<_JusSx_>
ls
_JusSx_ has quit [Client Quit]
_JusSx_ has joined #ocaml
_JusSx_ has quit [Client Quit]
_JusSx_ has joined #ocaml
Herrchen has quit ["bye"]
_fab has joined #ocaml
_fab has quit [Remote closed the connection]
_JusSx_ has quit ["leaving"]
_andre has quit ["leaving"]
shawn_ has quit [Read error: 104 (Connection reset by peer)]
<vincenz>
vodka-goo: however there is no such thing as "private" afaik
<vincenz>
however what you can do, though I'm not sure if that works or not... is not define the "private" methods in the .mli...basically split the interface from the implementation
<vodka-goo>
vincenz: if I define a function, it will not be possible to call them from outside the object
<vodka-goo>
maybe two interfaces, one for the user, one for the inherited classes ?
<vodka-goo>
not sure a method can be forgotten...
<vincenz>
you can define a function within a class
<vincenz>
class x =
<vincenz>
let somefun y = ... in
<vincenz>
object ::
<vincenz>
end
<vincenz>
Oh wait, you can have private methods
<vodka-goo>
private means not accessible from outside
<vodka-goo>
s/means/implies/
* vodka-goo
gets some doc...
<vincenz>
yes
<vincenz>
but also means, when overridden
<vincenz>
and called
<vincenz>
use the local method, not the overriden one
<vodka-goo>
that's a good point
<vodka-goo>
mmm, it means overridding is useless, or is there a dynamic type check for guessing if the object is derived or not ?
<vodka-goo>
anyway, if I can't access the method, it's no use
<vodka-goo>
eeeeh, I just realized I only call that method from the same class :)
<vodka-goo>
vincenz: where did you read about the local method being called ? cause I don't observe that...
Nutssh has quit ["Client exiting"]
<TeXitoi>
vodka-goo: there is no dynamic type in ocaml, 100% static
<TeXitoi>
well, 99%, you can play with marshall ;-)
<dan2>
TeXitoi: or Obj.magic
<vodka-goo>
it's no dynamic typing, it's ignoring typing
<dan2>
hah
<TeXitoi>
true
<vodka-goo>
Well, I think I'll trust my extension developers