Function pointers/delegates default args were stealth removed?

Jonathan M Davis jmdavisProg at gmx.com
Mon Aug 27 01:12:44 PDT 2012


On Monday, August 27, 2012 08:14:41 Piotr Duda wrote:
> Default args should be part of types (for passing them as template
> args etc, implicity convertable if they differs only on defaults) but
> not mangled in (since mangling is revelant only for linking, where
> defaults doesn't matter).

Default args are essentially copy-pasted at the call point. It makes no sense 
for them to be part of the type, and it makes no sense to use them with 
function pointers or function literals.

- Jonathan M Davis


More information about the Digitalmars-d mailing list