[exim-dev] Use of 'goto' in Exim sources.

Etusivu
Poista viesti
Vastaa
Lähettäjä: David Wilson
Päiväys:  
Vastaanottaja: exim-dev
Aihe: [exim-dev] Use of 'goto' in Exim sources.
Hi there,

I finally got around to looking at reformatting my Python patch today.
One thing I had forgotten about is a single goto label in the main
Python expansion procedure.

This function has 5 possible points where it can exit, performing the
same set of tasks at each exit. The use of a single label tidies the
whole thing up quite a bit, and I'd like to avoid rewriting this
procedure, as it's only going to get messy if I try to remove the label.

I notice that in my Exim 4.32 tree there are 345 other gotos, suggesting
that Philip doesn't mind the use of goto (well, judiciously, at least).
Is this the case?

Thanks,


David.