Re: But is it Object-Oriented?

[email protected]
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
Quoting Isaac Gouy <[email protected]>:

> This is quite clear: in Nice a 'private' method encapsulated in a class
> is not 'private' to that class. 

This is exactly why I suggested to not have a "private" keyword. See:
http://nice.sourceforge.net/cgi-bin/twiki/view/Dev/VisibilityModifiers

> This is quite clear from other language designs which promote
> "encapsulated multimethods", for example Half & Half. 
> http://www.cis.ohio-state.edu/~gb/Brew/Publications/HalfNHalf.pdf
> 
> Note: I'm not suggesting that Nice should use encapsulated multimethods
> - rather given that we only have multimethods (and functions) in Nice
> we should avoid misleading newbies with the idea that there are any
> encapsulated methods in Nice.

I agree.

> > Other languages have differing notions of what a class or a method
> > is. For instance, C++ classes can inherit from several classes while
> > Java classes cannot. The important thing is that there you can
> > relate the two, and just remember this difference. I have shown
> > above that you can do the same between Java methods and Nice methods.
> 
> And AFAIK in both C++ and Java, a class encapsulates methods - this is
> one of the few common threads in OO.

In other multimethod languages, classes don't encapsulate methods but they are
still called classes. I believe the term "class" actually comes from mathematics
(category theory?).

- Brian




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.