two-face changed the topic of #ocaml to: OCaml 3.05 released: http://caml.inria.fr/ocaml/distrib.html (expect 3.06 soon) | http://www.ocaml.org/ | http://caml.inria.fr/oreilly-book/ | http://icfp2002.cs.brown.edu/
<jlamar> Unique ids... like the base class contains a variant which holds type information?
<jlamar> Where can I find the Hickey book?
<TimFreeman> The id's would be anonymous; hopefully all you need is to be able to compare them. Represent an id with a new one-character string (say) and compare them with ==. The spaceship could then ask whether its argument is a ...
<TimFreeman> bullet by having a bullet stored on hand and comparing the id of the stored bullet to the id of its argument.
<TimFreeman> That way you don' t have to extend your variant when you invent bullets.
<jlamar> Thank you both... I'll have to think about it
<TimFreeman> I looked at the tutorial. I didn't understand why they throw the exceptions instead of just returning them. Maybe it's a preconception "exceptions are for throwing", or maybe there's a technical reason I don't get.
xactive has joined #ocaml
gl has quit [Read error: 113 (No route to host)]
xactive has quit ["Client Exiting"]
TimFreeman has left #ocaml []
jlamar has quit ["Client Exiting"]
gl has joined #ocaml
* gl is away: I'm busy
two-face has joined #ocaml
two-face is now known as two-away
xactive has joined #ocaml
two-away is now known as two-face
jlamar has joined #ocaml
two-face is now known as two-away
xactive has quit [Read error: 113 (No route to host)]
jlamar has quit ["Client Exiting"]
themus has quit [Read error: 110 (Connection timed out)]
gl has quit [Remote closed the connection]
two-away is now known as two-face
gl has joined #ocaml
eivuokko has joined #ocaml
clog has quit [^C]
clog has joined #ocaml
<two-face> A Tunes-er !
Vetinari8 has joined #ocaml
eivuokko has quit ["Use the Standard, Luke!"]
Vetinari8 has left #ocaml []
mr_bubbs has joined #ocaml
<mr_bubbs> what am I doing wrong here?
<mr_bubbs> # 7394 > 1073741824 ;;
<mr_bubbs> - : bool = true
<two-face> too big an integer !
<mr_bubbs> :(
<exarkun> 1 billion is probably above the max int size :)
<two-face> 2 billion or so is the max
<exarkun> try "1073741824 ;;"
<two-face> this is 10 billion here
<exarkun> neh, it's 1,073,741,824
<mr_bubbs> what do I use then?
<mr_bubbs> I did this in PHP with no problem, heh
<exarkun> open Nums
<two-face> exarkun: so i don't see the pb here, 31bits are enough
<mr_bubbs> I feel sorry for anyone who has to do a project with calculations and ocaml
<exarkun> two-face:
<exarkun> # 1073741824;;
<exarkun> - : int = -1073741824
<exarkun> two-face: the 31st bit is a sign bit :)
<two-face> oh
<two-face> doh!
texno has joined #ocaml
<texno> I get "/usr/lib/ocaml/lablgl/glPix.cmi is not a compiled interface" when compiling the examples in liblablgl-ocaml-dev, version 0.97-4, on Debian 3.0.
<mr_bubbs> st_size : int;
<mr_bubbs> (* Size in bytes *)
<mr_bubbs> ooh
<texno> have ocaml 3.04-12. what could be the problem?
<mr_bubbs> can Unix.stat actually stat a GB file?
<exarkun> expand GB?
<mr_bubbs> Gigabyte
<exarkun> If there's any size problem, it will be at 2 GB :) Modern *nixes shouldn't have any problem with anything up to several terabytes, though.
<two-face> texno: are they the latest packages?
<texno> yeah. I am now resorting to re-installing them.
mr_bubbs has left #ocaml []
<texno> same error after re-installation
<texno> the same packages work fine on a different computer
<two-face> you machine is broken :)
<texno> the machine, or just it's ocaml configuration?
<texno> the rest of the machine works fine
<two-face> dunno
<texno> that makes two of us :)
<texno> see you later
texno has quit ["ircII EPIC4-1.1.2 -- Are we there yet?"]
two-face has left #ocaml []