divgrad has quit []
docelic has joined #ocaml
Miwong has quit ["."]
mattam has quit ["zzzzZZZZZ......"]
docelic has quit ["Client Exiting"]
mrvn has joined #ocaml
mrvn_ has quit [Read error: 110 (Connection timed out)]
graydon has quit ["xchat exiting.."]
Yurik has joined #ocaml
zack has joined #ocaml
Yurik has quit [Read error: 54 (Connection reset by peer)]
Yurik has joined #ocaml
Yurik has quit [Read error: 104 (Connection reset by peer)]
skylan has quit [benford.freenode.net irc.freenode.net]
pnou has quit [benford.freenode.net irc.freenode.net]
Dybbuk has quit [benford.freenode.net irc.freenode.net]
lam_ has quit [benford.freenode.net irc.freenode.net]
xtrm has quit [benford.freenode.net irc.freenode.net]
emu has quit [benford.freenode.net irc.freenode.net]
zack has quit [benford.freenode.net irc.freenode.net]
mrvn has quit [benford.freenode.net irc.freenode.net]
whee has quit [benford.freenode.net irc.freenode.net]
smkl has quit [benford.freenode.net irc.freenode.net]
steele has quit [benford.freenode.net irc.freenode.net]
steele has joined #ocaml
skylan has joined #ocaml
Dybbuk has joined #ocaml
lam_ has joined #ocaml
xtrm has joined #ocaml
pnou has joined #ocaml
zack has joined #ocaml
mrvn has joined #ocaml
whee has joined #ocaml
smkl has joined #ocaml
emu has joined #ocaml
two-face has joined #ocaml
* two-face
is away: I'm busy
docelic has joined #ocaml
docelic has quit ["Client Exiting"]
* two-face
is back (gone 00:58:42)
<
two-face>
i'm bac, why a vengence
zack is now known as zack|gnam
zack|gnam is now known as zack
steele has quit [benford.freenode.net irc.freenode.net]
steele has joined #ocaml
* two-face
is away: I'm busy
docelic has joined #ocaml
docelic has quit [Client Quit]
mattam has joined #ocaml
* two-face
is back (gone 00:39:09)
Miwong has joined #ocaml
steele has quit [Remote closed the connection]
<
two-face>
What does this mean:
<
two-face>
Warning: This optional argument cannot be erased
<
pnou>
qu'il y a pas moyen de savoir quand tu as précisé tout les arguments de ta fonction
<
pnou>
ajoute un unit en dernier argument
<
two-face>
ok merci
<
two-face>
Pourtant let qpushbutton ~text ?parent =
<
two-face>
il s'agit du dernier paramètre
<
pnou>
ben justement, si tu ne le mets pas on ne sait pas si tu utilises juste la curyfication ou s'il n'y a pas d'argument parent
<
two-face>
ah oui, bien vu
<
two-face>
j'avais oublié l'évaluation partielle
<
two-face>
c'est l'expérience qui parle là
<
pnou>
je pense que tout le monde a eu le même problème avec les arguments optionnels :)
two-face has quit ["Client Exiting"]
MegaWatS has joined #ocaml
<
MegaWatS>
anyone here have any experience with writing tex dvi drivers?
Miwong has quit ["Miwong has no reason"]
Miwong has joined #ocaml
<
whee>
nuts, OCamlMakefile doesn't handle the preprocessor detection when running ocamldoc
<
whee>
which is odd because it does it for normal compilation :\
graydon has joined #ocaml
two-face has joined #ocaml
spip has joined #ocaml
<
two-face>
i love tuareg
spip has quit ["BitchX-1.0c18 -- just do it."]
<
two-face>
ma première appli ocaml qt marche :)
<
two-face>
le bouton hello world
<
two-face>
Qt excellent
<
pnou>
c'est terriblou
<
two-face>
Par contre, il faut qt3 compilé avec g++-3.2
<
two-face>
ça ne marche pas avec 2.95
<
two-face>
bon, manger
* two-face
is away: I'm busy
<
pnou>
t'as réglé les problèmes technique maintenant il reste à faire une bonne interface, c'est du gros boulot ça aussi
<
two-face>
pnou: ma démo marche avec des classes ocaml
<
two-face>
bon away
zack has left #ocaml []
spip has joined #ocaml
spip has quit [Remote closed the connection]
spip has joined #ocaml
spip has quit [Remote closed the connection]
spip has joined #ocaml
spip has quit [Remote closed the connection]
spip has joined #ocaml
spip has quit [Client Quit]
* two-face
is back (gone 01:28:10)
pnkfelix has joined #ocaml
jao has joined #ocaml
<
MegaWatS>
[20:06:29] <two-face> ma première appli ocaml qt marche :)
<
MegaWatS>
is there qt available for windows?
<
two-face>
MegaWatS: but hey, I only coded the binding to make the hello world button work :)
<
two-face>
MegaWatS: and i'm proud of it though :)
<
pnou>
what does your code look like?
<
pnou>
le ptit bout de code qui affiche le hello world
<
two-face>
chinon:~/prj/ocaml-qt/examples/tutorial1$ cat tut1.ml
<
two-face>
open Sys
<
two-face>
open Qapplication
<
two-face>
open Qpushbutton
<
two-face>
a = qapplication Sys.argv
<
two-face>
hello = qpushbutton ~text:"Hello world!" () in
<
two-face>
hello#resize 100 30;
<
two-face>
a#setMainWidget hello;
<
two-face>
hello#show;
<
two-face>
c'est la copie du premier exemple du tutorial
<
two-face>
le code du binding est fiat à la mode Garrigue
<
MegaWatS>
:eek: parentheses to delimit a code block *ugly* :p
<
MegaWatS>
wouldn`t have begin ... end been cleaner to delimit a series of statements? :)
<
two-face>
the shorter the nicer
<
pnou>
so remove the ( ) :)
<
two-face>
i could ?
<
MegaWatS>
yeah that too
<
MegaWatS>
but I still think for blocks of statements like this it is more idiomatic to use begin ... end
<
MegaWatS>
instead of ( ... )
<
two-face>
begin-end is pascalish and adaish
<
MegaWatS>
hey I take offense to that! comparing ada to ocaml ... :)
<
MegaWatS>
ada is more akin to C++
<
two-face>
Comparing Ada to C++!
<
MegaWatS>
yeah it is a LITTLE BIT cleaner than C++
<
MegaWatS>
but not much
<
two-face>
MegaWatS you're a troll
<
pnou>
Ada95 is the cleanest imperative language i ever seen
<
MegaWatS>
I`m only defending ocaml ... on #ocaml, imagine that :)
<
MegaWatS>
hm well I don`t know about "THE cleanest"
<
MegaWatS>
as I said it IS cleaner than C++
<
MegaWatS>
modula / oberon and the sort, to me, represent really clean imperative languages
<
pnou>
yep but not a LITTLE BIT :)
<
MegaWatS>
ah well I just think ada is still way too complicated and big/kludgy to be called elegant
<
two-face>
yeah, Ada is not elegant, but is cleaner and safer
<
MegaWatS>
than C++, right
<
MegaWatS>
which was my original post :)
<
MegaWatS>
but I mostly use clean as equivalent to elegant ^^
<
MegaWatS>
take that as you will ... :p
<
MegaWatS>
post = point even B[
zack has joined #ocaml
<
two-face>
zack is back!
<
two-face>
Come with us and celebrate the first ocaml Qt program!
<
two-face>
which prints "hello world" in a pushbutton :))
<
zack>
your binding?
<
zack>
BTW (releases), I've almost finished an OCaml module that mimic per's HTTP::Daemon modules family
<
two-face>
Are people really interested in a Qt binding since there is already a GTK binding?
<
two-face>
I'm not sure
<
zack>
two-face: I'm really interested in QT bindings for example
<
two-face>
what would it bring more than GTK ?
<
MegaWatS>
well two-face
<
zack>
QT internals are really better than GTK's one
<
MegaWatS>
maybe I would be
<
zack>
documentation is better
<
MegaWatS>
there are certain problems with the current GTK binding
<
two-face>
what problems?
<
MegaWatS>
I couldn`t get it to display any non-ascii characters properly in the windows port
<
zack>
last but not least, ported GTK applications change a lot from platform to platfomr
<
MegaWatS>
not even simple ansi characters
<
zack>
while QT applications behave almost the same on all supported architecture
<
two-face>
zack: i didn't know that
<
two-face>
MegaWatS: ok
<
two-face>
once I have handled signals and slots, I'll see
<
two-face>
currently it need g++ 3.2 and a qt3 compiled with 3.2
<
zack>
two-face: your binding maps directly (i.e. 1-1) qt classes to ocaml classes?
<
two-face>
zack: yes
<
zack>
any problems with inheritance?
<
two-face>
well, they are made like lablgtk so
<
two-face>
i don't know
<
two-face>
is inheritance easy with lablgtk ?
<
two-face>
the problem with such binding is converting C pointers
<
zack>
uhm, from the user (programmer) point of view, yes
<
zack>
I don't konw from the 'binder' point of view :)
<
two-face>
so yes :)
<
two-face>
I had to use a main type -'a obj , like in lablgtk in order to handle casted pointers
two-face has quit ["Client Exiting"]
Miwong has quit ["."]
smkl has quit [Read error: 104 (Connection reset by peer)]
smkl has joined #ocaml
zack has left #ocaml []
MegaWatS has quit ["Oceania has ALWAYS been at war with Eastasia!"]