Re: Protected

James Reeves <[email protected]> Wed, 7 Sep 2005 19:16:48 +0100
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
On Monday 05 Sep 2005 13:40, Daniel Bonniot wrote:
> Java's definition of "protected" is very much tied to the mono-method
> model, so it is hard to say directly how this can be translated in Nice.
> What would help is to give a realistic but hopefully short example (or a
> few) of the situation, so we can think how that can be handled in the
> multi-method model.

Ah... I see where you're coming from, now. I hadn't considered the impact the 
use of multi-methods would have upon the permissions model of Nice. Now I 
think I see the problem, and I haven't a solution around it.

A protected keyword would differentiate between methods inside and outside a 
class. I see now that might not be a good direction for Nice to go in.

I wonder it might be feasible to make a keyword that restricts access on a 
package basis, rather than a per file basis, such that methods outside the 
package cannot get access to certain methods and variables, but methods 
inside the package can.

--
James Reeves
http://www.monkeyengines.co.uk


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf