I thought of some additional explanation. On Thu, Jul 3, 2014 at 11:58 PM, Matt Oliveri <[email protected]> wrote: > But if you think of classes as providing an abstract data type (a la > CLU or ML modules) _in addition_ to abstraction via subtype > polymorphism, then private methods are just methods that are part of > the abstract type implementation, but not part of the type itself. > Using the class name to refer to the hidden concrete type when inside > the class definition itself can be considered sugar.
So in other words, private methods are private to the class, not private to the object. Private to the class is essentially abstract data types, and it's lexically scoped. You love lexical scope, right? _______________________________________________ bitc-dev mailing list [email protected] http://www.coyotos.org/mailman/listinfo/bitc-dev
