[dmd-beta] dmd 2.053 beta

David Simcha dsimcha at gmail.com
Sat May 7 07:59:03 PDT 2011


On 5/7/2011 2:27 AM, Walter Bright wrote:
>
>
> On 5/6/2011 10:47 PM, David Simcha wrote:
>> Test drove this with plot2kill, dstats and a few unreleased libs.  
>> Things that break existing code for me:
>>
>> 1.  http://d.puremagic.com/issues/show_bug.cgi?id=5938
>>
>> 2.  http://d.puremagic.com/issues/show_bug.cgi?id=5939
>>
>> 3.  http://d.puremagic.com/issues/show_bug.cgi?id=5940
>>
>> The last two have to do with std.algorithm.map being made a nested 
>> struct and nested structs having annoying and surprising limitations 
>> that the old implementation didn't have.
>
> This can be fixed by making those nested struct static.

Worked around all the errors I was getting and unfortunately just making 
them static leads to other errors.  Running the std.algorithm unit tests 
with the Result struct of Map made static:

std/algorithm.d(388): Error: function 
std.algorithm.__unittest11.map!(__dgliteral1).map!(int[]).map.Result.back cannot 
get frame pointer to __dgliteral1
std/algorithm.d(422): Error: function 
std.algorithm.__unittest11.map!(__dgliteral1).map!(int[]).map.Result.front 
cannot get frame pointer to __dgliteral1
std/algorithm.d(429): Error: function 
std.algorithm.__unittest11.map!(__dgliteral1).map!(int[]).map.Result.opIndex 
cannot get frame pointer to __dgliteral1



More information about the dmd-beta mailing list