Boo

Exception Handling: Allow anonymous typed handlers

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.8
  • Fix Version/s: 0.8.1
  • Component/s: Compiler, Emitter, Parser
  • Labels:
    None
  • Testcase included:
    yes
  • Patch Submitted:
    Yes
  • Number of attachments :
    0

Description

Boo does not allow anonymous typed handlers as C# does:

catch(ArithmeticException) { }

The attached patch corrects BOO-876 and this issue. Anonymous typed handlers are now allowed in the form:

except as ArithmeticException:
  pass

Which is equivalent to the C# code above.

Issue Links

Activity

Hide
Marcus Griep added a comment -

Use the patch file in BOO-879. It is more succinct and covers all related exception isses.

Show
Marcus Griep added a comment - Use the patch file in BOO-879. It is more succinct and covers all related exception isses.
Hide
Rodrigo B. de Oliveira added a comment -

Please don't mark the issue Fixed unless it's been checked in to trunk.

Show
Rodrigo B. de Oliveira added a comment - Please don't mark the issue Fixed unless it's been checked in to trunk.
Hide
Marcus Griep added a comment -

Revision 2744

Show
Marcus Griep added a comment - Revision 2744

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: