mauke has quit [calvino.freenode.net irc.freenode.net]
Amorphous has quit [calvino.freenode.net irc.freenode.net]
KrispyKringle has quit [calvino.freenode.net irc.freenode.net]
lispy has quit [calvino.freenode.net irc.freenode.net]
haelix has quit [calvino.freenode.net irc.freenode.net]
Demitar has quit [calvino.freenode.net irc.freenode.net]
Oatmeat|cs has quit [calvino.freenode.net irc.freenode.net]
KrispyKringle has joined #ocaml
haelix has joined #ocaml
mauke has joined #ocaml
brx has quit [Remote closed the connection]
brx has joined #ocaml
Oatmeat|cs has joined #ocaml
lispy has joined #ocaml
Demitar has joined #ocaml
Amorphous has joined #ocaml
exa has quit [Read error: 104 (Connection reset by peer)]
gim has quit []
Hipo has joined #ocaml
Submarine has quit ["Leaving"]
ellisonch has joined #ocaml
brx has quit [Remote closed the connection]
brx has joined #ocaml
<ellisonch>
hey, does anyone know if there is a way to turn off greedy matching in ocamllex? not the "shortest" setting instead of "parse", but a way to say "match the following regular expression with the fewest symbols as possible"
mlh has joined #ocaml
faigo has quit ["Leaving"]
Oatmeat has joined #ocaml
Oatmeat has left #ocaml []
mlh has quit [calvino.freenode.net irc.freenode.net]
mlh has joined #ocaml
brx_ has joined #ocaml
Oatly has quit [Read error: 110 (Connection timed out)]
brx has quit [Read error: 110 (Connection timed out)]
pango_ has joined #ocaml
premchai21 has joined #ocaml
pango has quit [Read error: 110 (Connection timed out)]
<ax>
question here: i asked the mailing list with no responce, so i want to use objects/subtyping to allow for easier addition of new types of "events" in my event sequencer program. if i have a baseclass "event" that i subclass to create event2 which has an additional method do_something, can i retrieve this once i've placed an object of type event and event2 (coerced to be an event)
<ax>
both in a list
<ax>
is there a way to find out the type of an object, or is there an alternative design method that i should attempt?
<ax>
basically i want users to be able to move all events around in time the same way, but some event subtypes would have additional methods that i'd like to be able to access
<ax>
i'd like to store all the events in a common structure as well
<premchai21>
You might have to do kludges with variant types.
<ax>
so basically there is no elegant method for this?
<premchai21>
I can't think of one off-hand, but then, I'm not an OCaml wizard either.
<ax>
ok.. hmm
brx_ has quit [Remote closed the connection]
OtherAlfie has left #ocaml []
Snark has joined #ocaml
vodka-goo has joined #ocaml
premchai21 has quit ["changing universes"]
vezenchio has joined #ocaml
ski has quit [Read error: 110 (Connection timed out)]
mattam has quit [Read error: 110 (Connection timed out)]
Banana has quit [Read error: 110 (Connection timed out)]
chs_ has quit []
mattam has joined #ocaml
Banana has joined #ocaml
Skal has joined #ocaml
Skal has quit ["Client exiting"]
<pango_>
ax: have you looked at the private row types of ocaml 3.09 ? I didn't understand what's said in the paper, but it looks like a way to solve that problem