[Gambas-user] Issue 218 in gambas: Escaping from a Try

gambas at ...2524... gambas at ...2524...
Fri Mar 2 18:53:03 CET 2012


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 218 by emil.len... at ...626...: Escaping from a Try
http://code.google.com/p/gambas/issues/detail?id=218

1) Describe the problem.
The compiler does not complain when you try to escape from a Try-statement,  
using 'Try Goto ...', 'Try Continue', 'Try Break', 'Try Return' and so on.  
This can cause some strange behaviour.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: r4522

3) Provide a little project that reproduces the bug or the crash.
   Try Goto label
   Print "Should not be reachable"

   label:
   Print "label, ";
   Error.Raise("Hello")

This code prints out the message "label, Should not be reachable".





More information about the User mailing list