Thread overview | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 20, 2006 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #3 from bugzilla@digitalmars.com 2006-06-20 02:16 ------- Fixed 0.161 -- |
July 23, 2006 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 ------- Comment #4 from braddr@puremagic.com 2006-07-23 17:05 ------- Created an attachment (id=18) --> (http://d.puremagic.com/issues/attachment.cgi?id=18&action=view) Bug from Anders -- |
July 23, 2006 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 ------- Comment #5 from braddr@puremagic.com 2006-07-23 17:06 ------- Created an attachment (id=19) --> (http://d.puremagic.com/issues/attachment.cgi?id=19&action=view) Bug from Anders -- |
July 23, 2006 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 benoit@tionex.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | ------- Comment #6 from benoit@tionex.de 2006-07-23 17:37 ------- In the chat, Anders had a problem with forward references. I believe this code should work. Is this error really solved? I attached the sources. -- |
January 23, 2007 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 davidl@126.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WORKSFORME ------- Comment #9 from davidl@126.com 2007-01-22 23:50 ------- the bug is fixed in 1.0. i don't know if that's a good news or a bad one. maybe it would hide something? would it fail at more complicated cases? -- |
January 23, 2007 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 braddr@puremagic.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Comment #10 from braddr@puremagic.com 2007-01-23 00:58 ------- Taking a closer look at the attachment, compiling dbug/bug/queue.d via 'dmd -c queue.d' produced an error: $ dmd -c queue.d queue.d(9): class queue.MessageQueue is forward referenced when looking for 'ListHead' queue.d(9): class queue.MessageQueue is forward referenced when looking for 'ListHead' arm.d(12): Error: no property 'ListHead' for type 'queue.MessageQueue' arm.d(12): Error: MessageQueue.ListHead is used as a type arm.d(12): variable arm.Arm.mqueue voids have no value Compiling the entire set together: dmd main.d list.d queue.d arm.d (or in any other order that I tried) succeeds. This indicates to me that the bug is NOT fixed. The code is certainly more verbose than it needs to be to be a minimal test case, but it _does_ show that there's an error still. Re-opening the issue. -- |
February 13, 2007 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 davidl@126.com changed: What |Removed |Added ---------------------------------------------------------------------------- Version|0.150 |1.005 ------- Comment #11 from davidl@126.com 2007-02-12 19:57 ------- yep , i tested it on 1.005. it still fails. umm dmd -c queue.d would have the forward reference problem. -- |
February 15, 2007 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 braddr@puremagic.com changed: What |Removed |Added ---------------------------------------------------------------------------- Version|1.005 |0.150 ------- Comment #12 from braddr@puremagic.com 2007-02-15 12:54 ------- reverting david's version change. Please stop that. -- |
July 02, 2009 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 --- Comment #13 from Walter Bright <bugzilla@digitalmars.com> 2009-07-02 02:21:27 PDT --- A simpler example: === test.d === import list, arm; class Queue { mixin List; Arm a; } class MessageQueue : Queue { } === arm.d === import list, test; class Arm { mixin List; MessageQueue.ListHead mqueue; } === list.d === template List() { struct ListHead { } } =================== compile with: dmd test gives: test.d(8): Error: class test.MessageQueue is forward referenced when looking for 'ListHead' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 02, 2009 [Issue 106] template - mixin sequence | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=106 --- Comment #14 from Walter Bright <bugzilla@digitalmars.com> 2009-07-02 02:28:20 PDT --- Even simpler: === test.d === import test; class Arm { typedef int ListHead; MessageQueue.ListHead mqueue; } === arm.d === import arm; class Queue { typedef int ListHead; Arm a; } class MessageQueue : Queue { } ============= -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation