Martin DeMello
2/23/2005 5:43:00 PM
Jason Bailey <azrael@demonlords.net> wrote:
> I'm thinking you can get what you want by
>
> case t
> when A.class then...
> when B.class then...
> end
>
> since you want to compare the actual class of the object
Or the inverse kludge:
case t.new
when A ...
when B ...
end