[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Method wrapping

Peter

11/26/2003 11:51:00 PM

2 Answers

matz

11/27/2003 6:13:00 AM

0

Hi,

In message "Re: Method wrapping"
on 03/11/27, Peter <Peter.Vanbroekhoven@cs.kuleuven.ac.be> writes:

|... since they stack _and_ since are anonymous in a sense. If there are 5
|foo:pre methods, how can you indicate which one it is that you want to
|redefine? Or is it just no redefining, wrap-and-live-with-it?

Basically. I think I will prepare method handling API to operate on
method combinations.

matz.

Gavin Sinclair

11/27/2003 6:26:00 AM

0

On Thursday, November 27, 2003, 10:50:47 AM, Peter wrote:

>> Will it also be possible to redefine wrapper methods? (I believe that's
>> what the original question intended) With primary methods it's obvious
>> which primary method is being redefined, but not with wrapper methods
>> since they stack.

> ... since they stack _and_ since are anonymous in a sense. If there are 5
> foo:pre methods, how can you indicate which one it is that you want to
> redefine? Or is it just no redefining, wrap-and-live-with-it?

Sounds like "wrap and live with it", which is OK by me.

Gavin