[nem-bug] [Nemerle 0000695]: Incorrect exception catch behaviour

feedback at nemerle.org feedback at nemerle.org
Fri Jun 30 10:08:11 CEST 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=695> 
======================================================================
Reported By:                Snaury
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   695
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             06-30-2006 10:08 CEST
Last Modified:              06-30-2006 10:08 CEST
======================================================================
Summary:                    Incorrect exception catch behaviour
Description: 
When catching multiple exceptions with Nemerle 0.9.3 every match gets
wrapped in its own try block, for example:

try {
  ...
} catch {
  | e is type1 => ...
  | e is type2 => ...
}

Generates the following IL:

.try {
  .try {
    ...
  } catch type1 {
    ...
  }
} catch type2 {
  ...
}

When similar code is compiled in C#, generated IL is like this:

.try {
  ...
} catch type1 {
  ...
} catch type2 {
  ...
}
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
06-30-06 10:08 Snaury         New Issue                                    
======================================================================




More information about the bugs mailing list