[Issue 306] New: dmd 165 breaks existing code

Derek Parnell derek at nomail.afraid.org
Tue Aug 22 23:37:23 PDT 2006


On Wed, 23 Aug 2006 05:25:24 +0000 (UTC), d-bugmail at 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 at digitalmars.com
>         ReportedBy: someidiot at 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



More information about the Digitalmars-d-bugs mailing list