<bluestorm>
(you can do a partial match too : let { pos = p } = r in ... )
<bluestorm>
(and the () is useless, unless you really want to emphasize the side-effecting behavior of your function (but apply_surface is quite clear about that))
<bluestorm>
Some (rect ~x:vec.x ~y:vec.y ~w:(surface_width src) ~h:(surface_height src))
<bluestorm>
(found in Sdl doc : val rect : x:int -> y:int -> w:int -> h:int -> rect )
AxleLonghorn has joined #ocaml
ita has joined #ocaml
maayhem has quit ["Leaving"]
jderque has quit [Read error: 113 (No route to host)]
ygrek has joined #ocaml
gene9 has quit [Read error: 110 (Connection timed out)]
<Yoric[DT]>
If anybody's interested, I'm starting to write down an OCaml tutorial.
<Yoric[DT]>
(in French, for the moment)
<asmanur>
Yoric[DT]: In what format ? tex ? html ? txt :-° ?
<Yoric[DT]>
html
<asmanur>
(by the way, i think bluestorm will be instered)
<bluestorm>
i am
<asmanur>
Yoric[DT]: is there anything to see ?
<bluestorm>
i've been looking for such a thing for a long time now
<bluestorm>
even began to write one myself
<Yoric[DT]>
Not yet, I'm writing it down at this very moment.
<bluestorm>
but it's very time-consuming :p
<Yoric[DT]>
I'm still in the introduction.
<Yoric[DT]>
I know. But since I'm supposed to teach OCaml, I decided that I might as well write everything down :)
<bluestorm>
Yoric[DT]: i'd be interested in a free-edit one (wikibook or something), but if you're a little hairy about that, a closed one is better than none at all
<bluestorm>
hm
<Yoric[DT]>
Whenever I translate it to English, I might put it on wikibooks, good idea.
<bluestorm>
wich i discovered lately, and found very interesting
<Yoric[DT]>
Good to know.
<bluestorm>
(it's caml light, but still; in particular i've been very interested in the algebraic datatypes part)
<Yoric[DT]>
Does anyone know if there's an equivalent to rlwrap for Windows ?
<bluestorm>
hm
<bluestorm>
isn't ledit portable ?
<bluestorm>
i have not tried it on windows, but as it's pure ocaml, it should work fine
<Yoric[DT]>
Yeah, but I can't start the tutorial by telling people to compile a program :/
<bluestorm>
:p
<bluestorm>
MacOs does have a decent graphical ocaml toplevel
<bluestorm>
i'm not sure there is such a thing on Windows
<Yoric[DT]>
The Windows toplevel is awful.
<bluestorm>
Yoric[DT]: i suggest you put "If you're on Windows, you're screwed" this year, and then have a student writing a LablGtk graphical toplevel for next year :-'
<Yoric[DT]>
:)
pango_ has joined #ocaml
Associat0r has joined #ocaml
pango has quit [Remote closed the connection]
<middayc>
bluestorm: I will read what you wrote me before (I was away).. thanks
<bluestorm>
you're welcome
Morphous has joined #ocaml
zheng has joined #ocaml
<middayc>
aha I will improve that with a partial match and remove the (); I didn't tinki enought, so I didn't see that that function already probably returns ()
<bluestorm>
a function whose type is ... -> unit always return () (if it returns !)
<bluestorm>
as () is the only value of type unit :p
<middayc>
:) yes thanks for pointing it out
ttamttam has left #ocaml []
<middayc>
:) yes thanks for pointing it out
<middayc>
(uh mistake)
Amorphous has quit [Connection timed out]
<Yoric[DT]>
It would be nice to have an on-line OCaml interpreter.
<middayc>
there is on
<middayc>
e
<Yoric[DT]>
Where ?
<middayc>
I saw ocaml interpreter in an applet somewhere ..
<rektide>
i definitely recall a lot of history on formal typed systems on ltu, i guess i can go through and pick out ones that are describes as having good introductions. i was a little worried it would be more distracting than anything though, with most papers building from a starting place rather than explaining the starting theory
<rektide>
ty for the book links
buluca has joined #ocaml
buluca has quit [Remote closed the connection]
buluca has joined #ocaml
ygrek has quit [Remote closed the connection]
ita has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
jderque has quit [Read error: 113 (No route to host)]
middayc_ has quit []
hsuh has joined #ocaml
hsuh has left #ocaml []
Mr_Awesome has quit ["aunt jemima is the devil!"]
Tetsuo has quit ["Leaving"]
dobblego has quit ["Leaving"]
dabblego has quit ["Leaving"]
marmottine has quit ["Quitte"]
Zeros has joined #ocaml
l_a_m has quit [Remote closed the connection]
love-pingoo has quit ["Connection reset by pear"]
jlouis_ has joined #ocaml
buluca has quit [Read error: 104 (Connection reset by peer)]
jlouis has quit [Read error: 110 (Connection timed out)]
buluca has joined #ocaml
leo037 has joined #ocaml
Jeff_123 has joined #ocaml
leo037 has quit ["Leaving"]
ita_ has joined #ocaml
ita has quit [Read error: 104 (Connection reset by peer)]
buluca has quit [Read error: 110 (Connection timed out)]
PieRRoMaN has joined #ocaml
<PieRRoMaN>
hi
<PieRRoMaN>
I'd like some help to compile a program with 2 interfaces