From: "Marcin Mielżyński" Date: 2006-07-14T04:45:12+09:00 Subject: Re: Weird behavior of case/when Nicolas Desprès wrote: > On 7/12/06, Kroeger, Simon (ext) wrote: >> >> case uses === which is well defined for obj === class. >> What you do is checking the class of a.class which is a class itself. >> >> To make it short: use 'case a' instead of 'case a.class' >> > > Thank you. I knew that case uses === but I would have never expected > that it behaves this way. > > Regards, It should behave that in a language where classes are objects :D (unlike java where instances of java.lang.Class are just proxies to vm internals) lopex