[comp.sys.mac.programmer] No THINK C 4.0 in this corner o

jpd00964@uxa.cso.uiuc.edu (08/30/89)

Along the same string:
Objective-C allows for factory and instance objects.  They are defined the
same, but the factory object handles creating instance objects and managing
global variables.  Is there anything corresponding to this in TC 4.0?
out of curiosity, does Smalltalk do this, or is this only for Obj-C?

Michael Rutman

dg@okra.sybase.com (David Gould) (09/01/89)

In article <227700038@uxa.cso.uiuc.edu> jpd00964@uxa.cso.uiuc.edu writes:
>
>Along the same string:
>Objective-C allows for factory and instance objects.  They are defined the
>same, but the factory object handles creating instance objects and managing
>global variables.  Is there anything corresponding to this in TC 4.0?
>out of curiosity, does Smalltalk do this, or is this only for Obj-C?
>
>Michael Rutman

In Smalltalk the "factory" objects are called Classes, and handle creating
instances and other class wide functionality.  Classes btw are also objects,
but then in Smalltalk _everything_ is an object.

Objective-C is merely a grafting of some Smalltalk syntax and functionality
onto C, which is not a bad thing as the result is much prettier than C++. But
not as nice as real Smalltalk.
				-dg



------  All opinions are mine and may or may not represent Sybase Inc.  ------
David Gould       dg@sybase.com        {sun,lll-tis,pyramid,pacbell}!sybase!dg
                  (415) 596-3414      6475 Christie Ave.  Emeryville, CA 94608