From: Kornelius Kalnbach Date: 2006-11-20T18:50:14+09:00 Subject: Re: type information > how does the interpreter (ruby1.8.5) store the type information of > a variable > how will i retrieve it ? what do you mean? obj.class? there is an example in string.c: switch (TYPE(pat)) { case T_REGEXP: return pat; case T_STRING: break; so I think that is the standard solution. variables themselves have no types in Ruby, only the objects they point at. [murphy]