[Issue 3009] format.d(2072) uses deprecated function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 26 16:03:39 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3009
Andrei Alexandrescu <andrei at metalanguage.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|andrei at metalanguage.com |bugzilla at digitalmars.com
--- Comment #2 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-09-26 16:02:56 PDT ---
I'm reassigning this to Walter. It's a failure of alias this. Reduced test
case:
import std.stdio;
struct A(T)
{
T[] datas;
alias datas this;
}
void main()
{
uint[] x;
x.popFront();
A!uint a;
writeln(a);
}
What should happen is that a.popFront() should forward to a.datas.popFront(),
which in turn rewrites itself into popFront(a.datas).
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list