From: Aria Stewart Date: 2009-11-01T02:15:42+09:00 Subject: Re: In-place parameter modification >> >> I wonder why Object (or BasicObject) doesn't know this trick. >> >> I also wonder why "replace" isn't called "replace!" :) > > This is cool, but it only works for mutating methods that already > exist, > if you want to write your own you're out of luck, as far as the core > classes go. Unless you hack in C or use evil.rb. They're just C structs, ultimately, and you can do ALL sorts of fun with them. Immediates could be tricky, though, since the reference to them /is/ the data. No struct in sight.