[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Yet Another Rite Thought: method combination

Christoph R.

11/18/2003 12:59:00 PM



------------
/Christoph

Please send off list mail to
'my_mail@gmy.net'.gsub(/y/,'x')



> -----Original Message-----
> From: ts [mailto:decoux@moulon.inra.fr]
> Sent: Tuesday, 18 November, 2003 01:43 PM
> To: ruby-talk ML
> Cc: ruby-talk@ruby-lang.org
> Subject: Re: Yet Another Rite Thought: method combination
>
> >>>>> "C" == Christoph <chr_mail@gmx.net> writes:
>
> >> Can you give me an example with 2 classes (inheritance +
> wrappers) ?
>
> C> class A
>
> OK, but I want also the output, i.e. what you expect :-)))

Not sure:-)) (at least for wrap's).

>
> C> def foo:pre
> C> super
> ^^^^^

Okay, for pre's and post's I would expect
"normal" inheritance - this would also
be pretty useful IMO. In fact, this might
even become popular idiom.


/Christoph


1 Answer

ts

11/18/2003 1:05:00 PM

0

>>>>> "C" == Christoph <chr_mail@gmx.net> writes:

C> def foo:pre
C> super
>> ^^^^^

C> Okay, for pre's and post's I would expect
C> "normal" inheritance - this would also
C> be pretty useful IMO. In fact, this might
C> even become popular idiom.

You expect that super in B#foo:pre call A#foo:pre ?

This is this or it make another call ?


Guy Decoux