[nem-bug] [Nemerle 0000964]: lack of variable initialization in generated code

feedback at nemerle.org feedback at nemerle.org
Thu Mar 1 13:22:38 CET 2007


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=964> 
======================================================================
Reported By:                malekith
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   964
Category:                   Compiler
Reproducibility:            always
Severity:                   major
Priority:                   urgent
Status:                     new
======================================================================
Date Submitted:             03-01-2007 13:22 CET
Last Modified:              03-01-2007 13:22 CET
======================================================================
Summary:                    lack of variable initialization in generated code
Description: 
This code behaves differently depnding if you initialize or not the x (the
tail call is transformed to goto, which fails to reinitialize).

def foo () {
  mutable x; // = 0;
  x++;
  when (x < 10) foo ()
}

foo ()

======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
03-01-07 13:22 malekith       New Issue                                    
======================================================================




More information about the bugs mailing list