[Issue 8723] Error: function called with argument types:

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 25 11:34:58 PDT 2012


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



--- Comment #2 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-09-25 11:35:45 PDT ---
(In reply to comment #1)
> Why is that clearly a bug? You gave two functions with identical function
> signatures. The only time that you give function prototypes in D are when
> you're _not_ providing the source (e.g. inside of .di files or version(D_Ddoc)
> blocks).

No, I gave one function prototype (declaration) and one function definition
with similar name and type. The former has to be binded to the latter. This is
how C works and D should follow it in this regard. There is no reason for
assuming that prototypes and definitions are separated between different
modules and no reason for making feigned ambiguity between function body and
its own declaration.

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


More information about the Digitalmars-d-bugs mailing list