From: Robert Klemme Date: 2006-11-11T03:45:07+09:00 Subject: Re: Overwriting the Integer class for method succ! (instead of just succ) paul wrote: > Thanks all! I became so much wiser now. I gues I didn't find this > information googling, because I assumed that it would be possible, > therefore searching "ruby integer overwrite value" and such... > > Now I still wonder, the only source-code I found for the Integer class > was in C. From this I wasn't able to figure out how I would go IF i'd > like to write this count++ (and with that modifying all 1's to 2's > e.g.). You cannot do this (even in C) because Fixnum is immutable. Every Fixnum instance has a fixed value and that never changes (like Integer instances in Java). Kind regards robert