Behaviour of goto into catch blocks.

2010-09-04 Thread Iain Buclaw
When it comes to using goto in D, the behaviour seems to be that you cannot enter a try block, and neither can you enter or exit from a finally block. What about catch blocks? It seems that there is no restrictions imposed on them, meaning that the following is legal. void main() { goto in

Re: Behaviour of goto into catch blocks.

2010-09-05 Thread Don
Iain Buclaw wrote: When it comes to using goto in D, the behaviour seems to be that you cannot enter a try block, and neither can you enter or exit from a finally block. What about catch blocks? It seems that there is no restrictions imposed on them, meaning that the following is legal. void