lazy void vs int delegate() as overloads - bug or illegal use of overloading?
anonymous via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 22 10:34:08 PST 2014
On Saturday, 22 November 2014 at 15:16:42 UTC, Johan Östling
wrote:
> void execute(lazy void f)
I think it's a bug that the compiler accepts a lazy void
parameter. It errors out on a non-lazy void parameter with
"cannot have parameter of type void". lazy shouldn't somehow
enable void parameters.
More information about the Digitalmars-d
mailing list