Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re x3: Perl - Is it an OO Languageby John M. Dlugosz (Monsignor) |
on Aug 28, 2002 at 16:06 UTC ( [id://193490]=note: print w/replies, xml ) | Need Help?? |
I suppose it's implementation-dependant as to whether this is actually checked. I suppose it's a tradeoff on whether you fail to link if you change the protection but "handle" overloading based on protection! I recall at least one compiler that checked, but it may be because it was more aggressive at optimizing and rearranging things. For a virtual function, re-ordering the definitions will indeed change things on any known compiler.
In Section
Meditations
|
|