As anyone who's ever used MFC before can attest to, return codes are Satan's creation :)
Nothing sucks worse than going IF (HRESULT != 0)... And then forgetting to do that, and then having your application crash because some other programmer forgot to do that, and then having to actually find out where he forgot to do that in a 1.5 million line app. Ah, good times. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Joseph Flanigan > Sent: October 11, 2004 2:25 PM > To: [EMAIL PROTECTED] > Subject: Re: [CFCDev] File I/O CFC > > > Interesting observation about finding return codes awkward. > > My suggesting about return codes is as a programming > technique to handle > exceptions rather than cfthrow. > > I can see some immediate uses for your cfc, but it would have to be > reworked to handle exceptions. > > Here is one case. > > variables.separator = getPathSeparator(); runs when the CFC > is invoked. It > calls createObject without any exception handling. If the > createoject > fails, the application crashes without any opportunity for > in-line repair. > > > At 12:51 PM 10/11/2004, you wrote: > > > CF functions and tags do not have return codes. Something I never > > > liked in CF. > > > >Funny, I have never felt the need for return codes, I actually find > >them pretty awkward... Well, to each his own :-) > > > >Thanks for your feedback anyway, I appreciate it > > > >---------------------------- > >Massimo Foti > >DW tools: http://www.massimocorner.com > >CF tools: http://www.olimpo.ch/tmt/ > >---------------------------- > > > > > > > >---------------------------------------------------------- > >You are subscribed to cfcdev. To unsubscribe, send an email > >to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > >in the message of the email. > > > >CFCDev is run by CFCZone (www.cfczone.org) and supported > >by Mindtool, Corporation (www.mindtool.com). > > > >An archive of the CFCDev list is available at > >www.mail-archive.com/[EMAIL PROTECTED] > > -------------------------------------------------------------- > --------- > http://www.switch-box.org/CFSQLTool/Download/ > > Switch_box MediaFirm, Inc. > www.Switch-box.org Loveland, CO USA > > ---------------------------------------------------------- > You are subscribed to cfcdev. To unsubscribe, send an email > to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' > in the message of the email. > > CFCDev is run by CFCZone (www.cfczone.org) and supported > by Mindtool, Corporation (www.mindtool.com). > > An archive of the CFCDev list is available at > www.mail-archive.com/[EMAIL PROTECTED] > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
