<mrvn>
Thanks, that works. Why do i have to subtype that?
<pnou>
no idea
<mrvn>
I'm subtyping it to its own type. Doens't look very logial.
<pnou>
the object type system is very very complex
<pnou>
very few person understand it totaly
<mrvn>
I notice that. Everytime I use it I learn something new.
<pnou>
even in the cristal team
<pnou>
i always subtype self, but i don't really know why
<pnou>
sometimes you must use (self : pipe :> pipe)
<mrvn>
It will get realy intresting if I need private methods and friends.
<mrvn>
Can you have protected methods? Methods that may be used by the class and by classes inheriting but noone else.
<pnou>
that what ocaml private method are
<pnou>
but you can't have methods which can't be used by classes inheriting
<mrvn>
You wouldn't make them methods I guess. Just define them with let between the class and object should work.
<pnou>
yes
eivuokko has quit [Read error: 104 (Connection reset by peer)]
TachYon25 has quit [Remote closed the connection]
gl has joined #ocaml
<pnou>
da gl
<gl>
salut pnou
<gl>
alors, ulm ?
<pnou>
je suis pris :)
<gl>
kewl
<pnou>
ouaip :)
<pnou>
je quitte jussieu, ça se fête !
eivuokko has joined #ocaml
TachYon25 has joined #ocaml
TachYon76 has joined #ocaml
TachYon76 has quit ["bez ki³y nie ma zaliczenia (z prawd studentek AM)"]
gl has quit [Read error: 113 (No route to host)]
thelema has joined #ocaml
<thelema>
ping?
<Dybbuk>
Howdy.
<thelema>
is there a right way to access a record field from a functored module?
<Dybbuk>
I don't know. :)
<thelema>
I can give more info than just that terse description if I wasn't clear enough.
<Dybbuk>
Well, I am a newbie with OCaml. I'm not even sure what a functored module is.
<thelema>
functors are pretty crazy. imagine parameterizing an entire module with another module.
<Dybbuk>
Wow. Well, I am going to have to go and read about them now. :) Are they discussed in the O'Reilly book?
<thelema>
chapter 14
<thelema>
they don't get as much treatment as they deserve, but what can you do...
<Dybbuk>
You can always exert your Will over them. :)
<Dybbuk>
Are you an OTO guy?
<thelema>
another someone who realizes my nick isn't a misspelling of thelma.
<Dybbuk>
Well, the head PR guy for the Caliphate OTO is a friend of mine. :)
<Dybbuk>
Frater Hrumachis.
<thelema>
it's a small world.
smklsmkl has joined #ocaml
eivuokko has quit ["sleep"]
<Dybbuk>
thelema: And me, I'm a Freemason.
<thelema>
I've heard the masons' recruiting is down
<Dybbuk>
Well, we don't recruit. But yes, membership has been falling. I think it was actually artificially high for the last 50 years or so -- for a while there, it was kind of a fad.
<thelema>
that's almost certainly true.
<Dybbuk>
So I'm happy. :) It's the folks who are Masons for the right reasons who are staying and joining.
<thelema>
why have you started to use ocaml?
<Dybbuk>
Well, I am a really big fan of Common Lisp, and through that got interested in functional programming.
<thelema>
caml is definitely different than lisp...
<Dybbuk>
And after seeing the "language shootout" page, I thought I'd take a look at it.
<Dybbuk>
The concepts and ease-of-learning impressed me, so I've slowly been learning it.
<Dybbuk>
Yes, it's quite different.
<thelema>
ocaml is my first functional language, and I really like the mindset one needs to program in it.
<Dybbuk>
But also quite similar.
<Dybbuk>
Yeah, functional programming is an awesome concept.
<Dybbuk>
I'm trying to get familiar enough with OCaml that I can use it for some projects at work.
<thelema>
perl was my big programming language before ocaml, so was already comfortable with the idea of mapping over structures.
<Dybbuk>
It would be very helpful to me if the native code compiler could produce relocatable objects.
<Dybbuk>
Yeah, we do mostly Perl stuff here, but lots of C as well.
* thelema
hasn't needed to make ocaml do that yet.
<thelema>
I'm mostly having fun being multi-paradigmatic
<Dybbuk>
thelema: I want OCaml modules to load into Perl. The only way to do that now is with bytecode.
<thelema>
ow, that's going to be tough.
<thelema>
what do you plan on interfacing the two for?
<Dybbuk>
Our main project relies very heavily on a set of Perl Apache modules.
* thelema
had the feeling web development was going to hit soon
<Dybbuk>
But we want to move some of the computationally hairy stuff to a faster and more sane language.
<Dybbuk>
C takes too long to write, though, and it's really damn ugly. :)
<Dybbuk>
Heheh. Web development can be fun if you make it fun.
<thelema>
However, neither the ocaml bytecode nor the native code generated by ocamlopt are fully relocatable.