From: matz@... (Yukihiro Matsumoto) Date: 2003-07-26T02:12:53+09:00 Subject: Re: Problem with class, struct, and to_s Hi, In message "Problem with class, struct, and to_s" on 03/07/26, Gavin Sinclair writes: |Anyone care to explain this? I thought 'puts' always called the |'to_s' method on its arguments. Or are classes and structs not |designed to be mixed? Because your "to_s", which should return a *string* representation of the receiver, did return an integer, so that "puts" (and its internal conversion method) was forced to use the default string conversion method. matz.