[Issue 3009] format.d(2072) uses deprecated function

2011-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3009


yebblies yebbl...@gmail.com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 CC||yebbl...@gmail.com
 Resolution||WORKSFORME


--- Comment #3 from yebblies yebbl...@gmail.com 2011-08-28 04:03:28 EST ---
The first test case now compiles without error, and the second does too (once
an import to std.array is added).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 3009] format.d(2072) uses deprecated function

2010-09-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3009


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 AssignedTo|and...@metalanguage.com |bugzi...@digitalmars.com


--- Comment #2 from Andrei Alexandrescu and...@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: ---


[Issue 3009] format.d(2072) uses deprecated function

2009-08-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3009


Andrei Alexandrescu and...@metalanguage.com changed:

   What|Removed |Added

 AssignedTo|and...@metalanguage.com |bugzi...@digitalmars.com




--- Comment #1 from Andrei Alexandrescu and...@metalanguage.com  2009-08-27 
21:51:07 PDT ---
This is very odd. If I comment out toString, the example compiles and runs.
There must be something odd going on in the compiler. Deferring to Walter.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---