Thread overview
[Issue 306] New: dmd 165 breaks existing code
Aug 23, 2006
d-bugmail
Aug 23, 2006
Derek Parnell
Sep 03, 2006
d-bugmail
Sep 03, 2006
Thomas Kuehne
August 23, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=306

           Summary: dmd 165 breaks existing code
           Product: D
           Version: 0.165
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P1
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: someidiot@earthlink.net


existing code that was legal with dmd.164 does not compile with 165.

void append (char[] content);
void append (char[] delegate());

these two cause an ambiguity in dmd.165 whereas they did not in dmd.164


-- 

August 23, 2006
On Wed, 23 Aug 2006 05:25:24 +0000 (UTC), d-bugmail@puremagic.com wrote:

> http://d.puremagic.com/issues/show_bug.cgi?id=306
> 
>            Summary: dmd 165 breaks existing code
>            Product: D
>            Version: 0.165
>           Platform: PC
>         OS/Version: Windows
>             Status: NEW
>           Severity: critical
>           Priority: P1
>          Component: DMD
>         AssignedTo: bugzilla@digitalmars.com
>         ReportedBy: someidiot@earthlink.net
> 
> existing code that was legal with dmd.164 does not compile with 165.
> 
> void append (char[] content);
> void append (char[] delegate());
> 
> these two cause an ambiguity in dmd.165 whereas they did not in dmd.164

This is the sort of thing I was worried about too. It is quite feasible that 'append' might want to behave differently depending on whether the argument is a string or a delegate.

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocrity!"
23/08/2006 4:34:07 PM
September 03, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=306


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla@digitalmars.com  2006-09-02 19:46 -------
Fixed 0.166


-- 

September 03, 2006
d-bugmail@puremagic.com schrieb am 2006-08-23:
> http://d.puremagic.com/issues/show_bug.cgi?id=306

> existing code that was legal with dmd.164 does not compile with 165.
>
> void append (char[] content);
> void append (char[] delegate());
>
> these two cause an ambiguity in dmd.165 whereas they did not in dmd.164

Added to DStress as http://dstress.kuehne.cn/run/d/delegate_19_A.d http://dstress.kuehne.cn/run/d/delegate_19_B.d

Thomas