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

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: David Wilson
Data:  
Para: exim-dev
Assunto: [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.