From: Zach Dennis Date: 2004-05-25T05:00:44+09:00 Subject: Design Question I am having a small dillema. In a program I and a friend are writing I am proposing to have a Singleton Error/Status object that is updated with error/status information. For example (this code is nont tested and it is just a conceptual look): class StatusSingleton def setStatus( returnCode , message , obj=nil ) @returnCode = returnCode @message = message @obj = obj end def getLastReturnCode return @returnCode end def getLastMessage return @message end end class MyObj def setTrue #A Big Error Occurs StatusSingleton.setStatus( "0x0080" , "Could not set true" ); end end m = MyObj.new(); if( !m.setTrue() ) then MyTkTextFieldWidget.setText( StatusSingleton.getLastMessage() ) end Is my StatusSinglton overkill? I am trying to consolidate error information into one class. What do you think? Thanks, Zach --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.684 / Virus Database: 446 - Release Date: 5/13/2004