" NAME SmallInterfaces AUTHOR sadehb@ix.netcom.com (Benny Sadeh) URL (none) FUNCTION bringing Interfaces to Smalltalk KEYWORDS interface ST-VERSIONS VisualWorks 2.5, VisualWorks 3.0, VisualAge 4.0 PREREQUISITES Refacotry Browser (3.0.3) CONFLICTS (none known) DISTRIBUTION world VERSION 1.4.2 DATE 26-Apr-99 INSTALLATION SmallInterfaces.pcl Toy Interfaces.pcl Refactory Browser SmallInterfaces Gui.pcl SUMMARY SmallInterfaces brings explicit interfaces to Smalltalk. Things you can do with SmallInterfaces: 1. Declare an interface and specify its behavior. This can be done in three distinct ways: - Directly, by specifying its name and selectors. (Look under the ''interface creation'' protocol under Interface.) - By composing from other interfaces. - By converting a class as a template (Look at the various asInterface* methods under Class.) 2. Declare a class as implementing one or more interfaces. This can be done in two distinct ways: - Directly, by adding a 'interfaces: stringOfInterfaceNames' to the class definition. (Look under the 'compiling' protocols under Class.) - By converting an interface to a class (Look at the various as Class* methods under Interface.) Both methods will create stubbed methods as necessary on behalf of the implemented interface(s) 3. Given a class, you can ask: - What interfaces does it implement? 4. Given an interface, you can ask: - Which classes understand it? - Which classes implement it? 5. Given an interface, you can ask: - Which interfaces extend it? - Which interfaces it is extending? 6. Given a class and an interface, answer whether the class implements the interface. Benny Sadeh "!