http://d.puremagic.com/issues/show_bug.cgi?id=8634


bearophile_h...@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_h...@eml.cc


--- Comment #1 from bearophile_h...@eml.cc 2012-09-09 06:53:14 PDT ---
(In reply to comment #0)
> void foo(int)
> {
> 
> }
> 
> void main()
> {
>     foo(5);
> }
> 
> Although anonymous function parameters may be used in function declarations, 
> it
> seems that dmd doesn't check whether a function declaration is a definition
> too.

What's the problem here?

foo() not giving a name to its first argument means the programmer is stating
foo() never uses its first argument, and the D language allows the programmer
to enforce this desire.

This feature also allows to avoid "unused argument warnings" once/where such
warning is available.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to