On Wed, Aug 09, 2000 at 03:26:56PM +0200, Bart Lateur wrote:
> On Wed, 09 Aug 2000 13:58:34 +0100, Hildo Biersma wrote:
> 
> >Yikes.  Class method calls should perform inheritance, subroutine calls
> >should not.
> 
> I agree with that.
> 
> >Altering the language to make the two look the same is a bad
> >idea, because it breaks, fatally, as soon as the class supports more
> >than one object at a time.
> 
> Then, the alternative method would be NOT to use the word "sub" any more
> in order to make a method.
> 
>       method param {
>           ... # this is a method, including inheritance
>       }
>       sub param {
>           ... # this is an ordinary function; no inheritance
>       }
> 
> Both could well coexist withing the same module; but they can't both be
> CODE refs.

This is a language issue, please take it to the perl-language mailing list.

Graham.

Reply via email to