Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!pa.dec.com!src.dec.com!src.dec.com!muller From: muller@src.dec.com (Eric Muller) Newsgroups: comp.lang.modula3 Subject: Re: Instance initialization in Modula-3? Message-ID: <1991Jan28.170238.27015@src.dec.com> Date: 29 Jan 91 01:02:38 GMT References: Sender: news@src.dec.com (News) Reply-To: muller@src.dec.com (Eric Muller) Organization: DEC Systems Research Center Lines: 13 In article , janssen@parc.xerox.com (Bill Janssen) writes: > Yes. As a workaround, I've decided to create a base class that > defines Make(), which is then the new "standard" way of creating an > instance. Make() will call the standard methods Allocate() and > Initialize(), which can then be appropriately overridden by the > subclass implementor. I am not sure I understand your solution. I believe that you will have some problems with the type declarations and/or have to do some (maybe implicit) narrowing. Can you tell more ? Eric.