digitalmars.D.bugs - [Issue 3535] New: struct constructors don't work in CTFE
- d-bugmail puremagic.com (31/31) Nov 20 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3535
- d-bugmail puremagic.com (6/6) Nov 20 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3535
- d-bugmail puremagic.com (12/12) Jan 10 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3535
- d-bugmail puremagic.com (10/10) Jan 11 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3535
- d-bugmail puremagic.com (11/11) Jan 30 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3535
http://d.puremagic.com/issues/show_bug.cgi?id=3535
Summary: struct constructors don't work in CTFE
Product: D
Version: 2.036
Platform: Other
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: wbaxter gmail.com
struct Struct
{
this(int _n) {
n = _n; x = 5;
}
this(int _n, float _x) {
n = _n; x = _x;
}
int n;
float x;
}
enum A = Struct(1);
enum A = Struct(1,2);
Both calls fail. But if you /don't/ define any constructors then the second
one would work.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 20 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3535 Additional note: static opCall does work with CTFE. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 20 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3535
Don <clugdbug yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch, rejects-valid
CC| |clugdbug yahoo.com.au
I have sent Walter a patch for this. This was much more difficult than you
might expect.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 10 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3535
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla digitalmars.com
22:02:24 PST ---
Changeset 332
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 11 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3535
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
22:44:57 PST ---
fixed dmd 2.040
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 30 2010









d-bugmail puremagic.com 