Programmer's Reference

Creating instances

basicNew, basicNew:

Note:The standard messages used in Smalltalk to create new instances of classes are new, basicNew, new:, and basicNew:. These messages are defined in Behavior in the Blue Book, but this causes them to be inherited by many classes for which one or more are not appropriate. CLIM and CLDT take a more careful approach. Only the message basicNew is defined for all classes. As specified in the Blue Book, basicNew and basicNew: are intended to be the primitive object creation messages and are not intended to be overridden, because the other instance creation messages are often defined in terms of this one. Other instance creation messages are inherited as specified in the class messages for each CLDT and CLIM class.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]