Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #11241
| From | jgk@panix.com (Joe keane) |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: Style question - calling default from several places |
| Date | 2011-11-03 15:46 +0000 |
| Organization | Public Access Networks Corp. |
| Message-ID | <j8ud0i$8i1$1@reader1.panix.com> (permalink) |
| References | <b135a3cf-c719-433b-814d-69e89ce637ab@f11g2000vbm.googlegroups.com> |
int xxx(...)
{
...
switch (op)
{
case OP_A:
...
goto dontcallfunc;
case OP_B:
...
goto docallfunc;
case OP_C:
...
goto dontcallfunc;
case OP_D:
...
goto docallfunc;
default:
...
goto docallfunc;
}
abort();
dontcallfunc:
ret = ...;
goto done;
docallfunc:
ret = func(...);
goto done;
done:
...
return ret;
}
Back to comp.lang.c++ | Previous | Next — Previous in thread | Find similar | Unroll thread
Style question - calling default from several places Paul N <gw7rib@aol.com> - 2011-10-31 13:27 -0700
Re: Style question - calling default from several places Marcel Müller <news.5.maazl@spamgourmet.com> - 2011-10-31 22:15 +0100
Re: Style question - calling default from several places Paul N <gw7rib@aol.com> - 2011-11-01 15:25 -0700
Re: Style question - calling default from several places Marcel Müller <news.5.maazl@spamgourmet.com> - 2011-11-02 08:16 +0100
Re: Style question - calling default from several places Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-11-01 11:44 +0000
Re: Style question - calling default from several places Victor Bazarov <v.bazarov@comcast.invalid> - 2011-11-01 10:02 -0400
Re: Style question - calling default from several places Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-11-02 03:25 +0000
Re: Style question - calling default from several places Victor Bazarov <v.bazarov@comcast.invalid> - 2011-11-02 08:35 -0400
Re: Style question - calling default from several places Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-11-03 18:32 +0000
Re: Style question - calling default from several places jgk@panix.com (Joe keane) - 2011-11-03 15:46 +0000
csiph-web