www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 306] New: dmd 165 breaks existing code

reply d-bugmail puremagic.com writes:
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


-- 
Aug 22 2006
next sibling parent Derek Parnell <derek nomail.afraid.org> writes:
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
Aug 22 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=306


bugzilla digitalmars.com changed:

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





Fixed 0.166


-- 
Sep 02 2006
prev sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFE+pidLK5blCcjpWoRAluEAJwPde8FX6wi8XBP902v1kPIL7C9/wCeLdw8 41DgnsCwOyIfWt5nazJXqIY= =0gis -----END PGP SIGNATURE-----
Sep 03 2006