Sujet : Re: do { quit; } else { }
De : thiago.adams (at) *nospam* gmail.com (Thiago Adams)
Groupes : comp.lang.cDate : 04. Apr 2025, 21:46:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vspgfk$ce6m$4@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
Em 4/4/2025 5:43 PM, Thiago Adams escreveu:
but...the pattern I use is..
{
int error = 0;
try{
error = ...
if (error != 0) throw;
}
catch {
}
return error;
}
It is also common a empty catch. (so it could be optional)
{
int error = 0;
do {
error = ...
if (error != 0) quit;
}
return error;
}