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/

Reply via email to