[nem-bug] [Nemerle 0000338]: Caching in ++x macro do not play nice with valuetypes

feedback at nemerle.org feedback at nemerle.org
Wed May 3 20:09:53 CEST 2006


The following issue has been UPDATED.
======================================================================
<http://nemerle.org/bugs/view.php?id=338> 
======================================================================
Reported By:                nazgul
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   338
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   high
Status:                     confirmed
======================================================================
Date Submitted:             02-12-2005 11:35 CET
Last Modified:              05-03-2006 20:09 CEST
======================================================================
Summary:                    Caching in ++x macro do not play nice with
valuetypes
Description: 
struct S {
  mutable g : int;
 
  public play () : void {
    def x = this;
    x.g = 10;
    ++x.g;
    assert (x.g == 11);  
  }
}

module M {
    Main () : void { 
        def x = S();
        x.play ();
    }

}

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

----------------------------------------------------------------------
 nazgul - 02-15-05 14:56 
----------------------------------------------------------------------
This seems not fixable if we want to stay at parsetrees here or even with
TypedType. Maybe when we remove CExpr stage, there will be some more
useful nodes added to TExpr, so this could be fixed then.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
02-12-05 11:35 nazgul         New Issue                                    
02-15-05 14:56 nazgul         Note Added: 0000559                          
02-15-05 14:56 nazgul         Status                   new => confirmed    
02-15-05 14:56 nazgul         Description Updated                          
02-15-05 14:56 nazgul         Additional Information Updated                    
05-03-06 20:09 nazgul         Priority                 normal => high      
05-03-06 20:09 nazgul         Description Updated                          
05-03-06 20:09 nazgul         Additional Information Updated                    
======================================================================




More information about the bugs mailing list