Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!mtxinu!sybase!okra!dg From: dg@okra.sybase.com (David Gould) Newsgroups: comp.sys.mac.programmer Subject: Re: No THINK C 4.0 in this corner o Message-ID: <5855@sybase.sybase.com> Date: 31 Aug 89 20:56:43 GMT References: <2523@husc6.harvard.edu> <227700038@uxa.cso.uiuc.edu> Sender: news@sybase.sybase.com Reply-To: dg@sybase.com (David Gould) Organization: Sybase, Inc. Lines: 24 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