Graham Barr <[EMAIL PROTECTED]> writes: >> For the "my Dog $spot" case, that's not an issue, compile time resolution. > >And why would an object of type Scotty which inherits from Dog not >be valid to assign to $spot. And if Scotty overrides some methods >you have a problem. We _could_ do the C++ thing and say if you have assigned it to a Dog variable (akin to casting to a base class) then you get Dog's methods. But I don't like that at all. -- Nick Ing-Simmons
- Re: Method call optimization. Nick Ing-Simmons
- Re: Method call optimization. Chaim Frenkel
- Re: Method call optimization. Chaim Frenkel
- Re: Method call optimization. Graham Barr
- Re: Method call optimization. Chaim Frenkel
- Re: Method call optimization. Nick Ing-Simmons
- Re: Method call optimization. David L. Nicol
- Re: Method call optimization. Dan Sugalski
- Re: Method call optimization. Nick Ing-Simmons
- Re: Method call optimization. Nick Ing-Simmons
- Re: Ramblings on "base class" for ... Nick Ing-Simmons
- Re: Ramblings on "base class" for ... Ken Fox
- Re: Ramblings on "base class" for ... Larry Wall
- Re: Ramblings on "base class" for ... Dan Sugalski
- Re: Ramblings on "base class" for ... Chaim Frenkel
- Re: Ramblings on "base class" for ... Dan Sugalski
- Re: Ramblings on "base class" for ... Larry Wall
- Re: Ramblings on "base class" for ... Ken Fox
- Re: Ramblings on "base class" for ... Nick Ing-Simmons
- Re: Ramblings on "base class" for ... Nick Ing-Simmons
- Re: Ramblings on "base class" for SV etc. Nick Ing-Simmons