Sujet : Re: do { quit; } else { }
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.cDate : 09. May 2025, 18:45:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vvlevp$2um2l$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
Am 06.04.2025 um 21:53 schrieb Thiago Adams:
I have asked the same question here before. It can be implemented using macros.
#define try
#define catch if (0) catch_label:
#define throw do { throw_break_point(); goto catch_label;}while (0)
Exceptions make sense if you leave the scope of a single function
through an exception. Within a function this additional macro-com-
plexity isn't necessary.