Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!sdd.hp.com!hp-pcd!hpcvlx!ben From: ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) Newsgroups: comp.windows.x Subject: Re: Toolkit for Open Look *and* OSF/Motif Look and Feel Message-ID: <100920297@hpcvlx.cv.hp.com> Date: 21 Feb 91 16:30:49 GMT References: <1322@ixos.de> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 17 > How do you signal a failure when using a constructor? ... Lotsa' ways. It is just a procedure after all. An approach most like OL would be to have the constructor turn around and call another constructor, error check, and return. Or, you could error check inline in your cronstructor. Neat exception handling is supposed to be in the works for C++, and then there are even more options. ----------------------------------------------------------------------- Benjamin Ellsworth | ben@cv.hp.com | INTERNET Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP 1000 N.E. Circle | (USA) (503) 750-4980 | FAX Corvallis, OR 97330 | (USA) (503) 757-2000 | VOICE ----------------------------------------------------------------------- All relevant disclaimers apply. -----------------------------------------------------------------------