bug: mixin and classes
Tyro [a.c.edwards]
nospam at home.com
Thu Jul 2 21:36:39 PDT 2009
OS: Windows 7RC
Compiler: DMD v2.030
Library: Phobos2
Attached file is Cris Miller's template implementation of a circular
list download today from dprogramming.com. Note that changing the order
of declaration for the two classes produces a slightly different error
message, but the problem remains the same. Additionally, removing the
LM2Asset class allows the code to compile correctly.
private import list;
void main()
{
UIC.ListHead uicList;
foreach (n; 0 .. 10)
{
uicList ~= new UIC();
}
}
// comment out LM2Asset and this compiles correctly
class LM2Asset
{
mixin List;
}
class UIC
{
mixin List;
}
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: list.d
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-bugs/attachments/20090703/af4de205/attachment.txt>
More information about the Digitalmars-d-bugs
mailing list