Just to be difficult, what's the difference then between multiple exits and
a (C) switch statement?
Apart from the more elegant appearance of the case / switch, when you come
out at the end you can't say for certain where you came from (other than
what you were switching for!).
And the assembler for it is identical to the test / jump (== GOTO).

- Jill.

--
Jill Rowling, Snr Des. Eng. & Unix System Administrator
Eng. Systems Dept, Aristocrat Technologies Australia
3rd Floor, 77 Dunning Ave Rosebery NSW 2018
Phone: (02) 9697-4484 Fax: (02) 9663-1412 Email: [EMAIL PROTECTED]
 


> -----Original Message-----
> From: Raoul Golan [mailto:[EMAIL PROTECTED]]
> I guess it should be said here that there is an "unbreakable" golden
> rule in programming style which says multiple exit points in a
> function is a no-no.... and that there should only be one exit point
> at the end.


----------------------
CONFIDENTIALITY NOTICE
----------------------
This email is intended only to be read or used by the addressee.
The information contained in this e-mail message may be confidential
information. If you are not the intended recipient, any use, interference
with, distribution, disclosure or copying of this material is unauthorised
and prohibited. Confidentiality attached to this communication is not waived
or lost by reason of the mistaken delivery to you.

If you have received this message in error, please delete it and notify us
by return e-mail or telephone Aristocrat Technologies Australia Pty Limited
on +61 2 9413 6300.

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to