dmd 1.073 and 2.058 release

Robert Clipsham robert at octarineparrot.com
Wed Feb 15 08:45:05 PST 2012


On 15/02/2012 04:47, Walter Bright wrote:
> Anyone care to count up the number of bug fixes here?
>
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.073.zip
>
> http://www.digitalmars.com/d/2.0/changelog.html
> https://github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zip

The following no longer works and is not listed in the changelog:

----
void foo(T...)(T)
{
}

void main()
{
     foo((string, string a){
         // Do something
     });
}
----
It now gives:
----
test.d(1): Error: cannot have parameter of type void
test.d(1): Error: variable test.foo!(void).foo._param_0 voids have no value
test.d(7): Error: template instance test.foo!(void) error instantiating
test.d(7): Error: template test.foo(T...) cannot deduce template 
function from argument types !()(void)
----

I assume that this is intentional from my following of dmd commits, the 
breaking change should be listed though.

-- 
Robert
http://octarineparrot.com/


More information about the Digitalmars-d-announce mailing list