<Mongo>
is it possible to half-implement a module interface? ie, fun B depends upon fun A, which is different in different module implementations. However, since B is unchanging, and depends upon A, and so should be identical between implementations of this module interface.
<Mongo>
I guess I'm trying to map OOP semantics of partially-implemented abstract classes, onto the module system of ocaml, without using Ocaml's OOP (I haven't invested the time to learn it, and it'd likely cause a redesign of my existing module-based system)
Cryptor has joined #ocaml
Cryptor has quit [carter.openprojects.net irc.openprojects.net]
Yurik has quit [carter.openprojects.net irc.openprojects.net]
Mongo has quit [carter.openprojects.net irc.openprojects.net]
physarum has quit [carter.openprojects.net irc.openprojects.net]
scipient has quit [carter.openprojects.net irc.openprojects.net]
emu has quit [carter.openprojects.net irc.openprojects.net]
Taaus has quit [carter.openprojects.net irc.openprojects.net]
tav` has quit [carter.openprojects.net irc.openprojects.net]
awwaiid has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
Cryptor has joined #ocaml
tav` has joined #ocaml
physarum has joined #ocaml
scipient has joined #ocaml
Taaus has joined #ocaml
Mongo has joined #ocaml
emu has joined #ocaml
Yurik has joined #ocaml
smkl has joined #ocaml
awwaiid has joined #ocaml
Cryptor has quit [Read error: 110 (Connection timed out)]
olczyk has joined #ocaml
Yurik has quit ["Client Exiting"]
olczyk has quit []
MongoMike has joined #ocaml
Mongo has quit [Read error: 104 (Connection reset by peer)]
<smkl>
MongoMike: in the general case implementing class like stuff with modules requires mixins, which are still not implemented in ocaml
<smkl>
but you can do some stuff with functors and "include": module B (A:A_INTF) = struct include A let b = ... end
Yurik has joined #ocaml
Mongo_ has joined #ocaml
MongoMike has quit [Read error: 104 (Connection reset by peer)]
Yurik has quit ["Client Exiting"]
monkeyiq has joined #ocaml
xtrm has joined #ocaml
<xtrm>
Hello World\n
<monkeyiq>
as far as lablgtk goes, is it still very much alpha?
<monkeyiq>
../src/lablgtktop -w s -I ../src scrolledwin.ml
<monkeyiq>
doesn't seem very interactive here
<smkl>
monkeyiq: there is something wrong with the toplevel
<monkeyiq>
smkl: ok. I am building a spec file for it as an aside, and I had a issue with png.h versioning. I am remaking the rpm now and will see if its better installed.
smkl has quit [Remote closed the connection]
smkl has joined #ocaml
<monkeyiq>
well, time to email in the specs/rpms then.
<xtrm>
hi smkl !
<smkl>
hello xtrm
<xtrm>
ocamlsdl-0.5 is out
* monkeyiq
goes to check it out
<xtrm>
i released it on friday, just added some patchs and one example
<xtrm>
sven luther and jerome marrant want to add it in debian system.
Yurik has joined #ocaml
<smkl>
about TTF_RenderText_Shaded, i think there should be two different functions, one for shaded and one for fast
<xtrm>
yes i thought about it, i will do an enumeration of all the unimplemented functions of SDL, SDL_ttf, image and mixer...
<xtrm>
and adding a todo list per module
niklas has joined #ocaml
<smkl>
monkeyiq: at least on my system, lablgtk and lablgl won't work together
<monkeyiq>
hmm, seems the ocaml guys are not really into spec files and rpms :(
<monkeyiq>
smkl: well I used the GL option for lablgtk, and get mixed results with the GL examples in lablgtk
<monkeyiq>
smkl: most work though
<xtrm>
smkl: we must use the famous "release early, release often"
<monkeyiq>
gears is static, it seems the scrollbars dont work really well with my lablgtk
* monkeyiq
is quite tempted to hack some ocaml GL stuff
<monkeyiq>
though I think I need to play with it more and checkout what XML and 3d object libs I can interface with first.
smkl has quit [Read error: 104 (Connection reset by peer)]
smkl has joined #ocaml
smkl has quit [Read error: 104 (Connection reset by peer)]
smkl has joined #ocaml
TimFreeman has joined #ocaml
xtrm has quit [Read error: 110 (Connection timed out)]
xtrm has joined #ocaml
niklas has quit [Read error: 104 (Connection reset by peer)]
smkl has quit [Read error: 104 (Connection reset by peer)]
smkl has joined #ocaml
xtrm has quit [Read error: 110 (Connection timed out)]
TimFreeman has left #ocaml []
gl has joined #ocaml
<Mongo_>
How does one perform string quality in ocaml?
<Mongo_>
"Malden" == "Malden", compared as a == b, is returning false
<smkl>
never use ==, use = and <> for inequality
<Mongo_>
Ah, thanks. = is what I was looking for.
<Mongo_>
Yay. The graph traversal program works now.
<Mongo_>
I really like the fact that if your OCaml program compiles, you have a very good chance of it working out-of-the-box.
Yurik has quit ["Client Exiting"]
Yurik has joined #ocaml
}Topaz{ has joined #ocaml
monkeyiq has quit ["I cant believe it's not crack!"]