From: Mathieu Bouchard Date: 2001-11-30T01:51:16+09:00 Subject: [ruby-talk:26933] Re: overload possible? On Fri, 30 Nov 2001 nobu.nokada@softhome.net wrote: > At Thu, 29 Nov 2001 21:14:14 +0900, > Harry Ohlsen wrote: > > Now, here's an interesting question ... is there any way to get access to > > the parameters of the calling context? What I'm getting at is, it would > > be much nicer if one didn't need to pass the "args" parameter to > > overload() all the time. > It's impossible/prohibited in any languages to access to such > things directly. Generally, it's considered as *BAD* idea. Naturally, Perl implements that feature. The reason for it is to make debugging/tracing easier. There are other potential reasons. I did not ask for it in RCR #29. The only reason is that I forgot to. Also, take note that "it's a *BAD* idea" is a *BAD* answer. It's like, tell me not to use macros in C. =) ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju