in reply to Re: Re: Idea on a Base class API
in thread Idea on a Base class API
As far as the technical end, it might be useful to provide a switch of some sort to turn on/off access checking of various kinds. That is, when you're testing or developing, you can check for adherence to the contract (private/public/protected, compatible types, etc.), and be able to switch off the checking later. If you do it right, you can make it run faster without checking.
To check for violation of visibility, you could use caller() to see where you're being called from.
Good luck!
|
---|