Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Summary: ClassBoxes
Last updated at 4:02 am UTC on 26 February 2005
Reported by Alexandre Bergel (ab)

What problem is being addressed

Classboxes address the two problems:

How it solves the problem


By making definitions contained in a classbox visible only to the classbox that defines it and other classboxes that import the extended classes from it. Let's assume a classbox Network that extends the class String with a method asUrl. This method asUrl is visible only in the classbox Network, and not outside. A classbox WebBrowser would import String from Network to send message asUrl to instance of String.

Useful links

http://www.iam.unibe.ch/~scg/Research/Classboxes/index.html


For coherence I think the author should write the sections above this line.
People can add what they want to these later sections, and can suggest that the author change the rest.

What's cool about it


Classboxes are more powerful that Selector Namespaces in the sense that new extension can be called by former code. Such a property is not satisfied with Selector Namespace. Here a picture that illustrates it.


Read the paper http://www.iam.unibe.ch/~scg/Archive/Papers/Berg05aclassboxes.pdf to know more about comparision with other systems.

What's not

Commentary


Back to New Modules