From: Brad Phelan Date: 2006-12-19T20:25:07+09:00 Subject: Re: Discovering the number of return arguments requested. Eric Hodel wrote: > On Dec 19, 2006, at 01:20, Brad Phelan wrote: > >> Is it possible ( and I think not ) that you can discover if any return >> arguments are requested when a method is called. > > Methods only ever return one Object. (Sometimes that Object will be > splatted, giving the illusion of multiple arguments.) True. However that doesn't answer the question as to whether it is possible to discover if that single object is used or not. I suspect Ruby syntax would make this difficult to figure out. If the critical function is called as the last statement in another function or block then the return object can get passed implicitly up the stack until something takes hold of it. Brad