[nem-bug] [Nemerle 0000614]: Record to generate constructor just for not initialized fields

feedback at nemerle.org feedback at nemerle.org
Sat Mar 25 22:55:33 CET 2006


The following issue has been RESOLVED.
======================================================================
<https://nemerle.org/bugs/view.php?id=614> 
======================================================================
Reported By:                Kamil Dworakowski
Assigned To:                nazgul
======================================================================
Project:                    Nemerle
Issue ID:                   614
Category:                   The Macro Library
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             02-07-2006 13:52 CET
Last Modified:              03-25-2006 22:55 CET
======================================================================
Summary:                    Record to generate constructor just for not
initialized fields
Description: 
I would like a Record pattern to generate a constructor that doesn't set
already initialized fields. For example

[Record] class C
  mutable f: list[A] = []
  f2: int

-->

class C
  mutable f: list[A] = []
  f2: int
  public this(f2:int)
    this.f2 = f2
======================================================================

----------------------------------------------------------------------
 nazgul - 03-25-06 22:55 
----------------------------------------------------------------------
The new design (see http://nemerle.org/Record_macro) is now implemented on
trunk (r6164)

Now you can specify which fields you want to include in constructor by
flexible Include and Exclude parameters.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
02-07-06 13:52 Kamil DworakowskiNew Issue                                    
03-25-06 22:55 nazgul         Status                   new => resolved     
03-25-06 22:55 nazgul         Resolution               open => fixed       
03-25-06 22:55 nazgul         Assigned To               => nazgul          
03-25-06 22:55 nazgul         Note Added: 0001124                          
======================================================================




More information about the bugs mailing list