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

feedback at nemerle.org feedback at nemerle.org
Sat Jul 29 23:23:55 CEST 2006


The following issue has been UPDATED.
======================================================================
<http://nemerle.org/bugs/view.php?id=695> 
======================================================================
Reported By:                Snaury
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   695
Category:                   Compiler
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             06-30-2006 10:08 CEST
Last Modified:              07-29-2006 23:23 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                                    
06-30-06 15:10 Snaury         Issue Monitored: Snaury                      
07-29-06 23:23 Snaury         Severity                 minor => major      
07-29-06 23:23 Snaury         Description Updated                          
07-29-06 23:23 Snaury         Additional Information Updated                    
======================================================================




More information about the bugs mailing list