Function pointers/delegates default args were stealth removed?

Walter Bright newshound2 at digitalmars.com
Mon Aug 27 01:22:15 PDT 2012


On 8/26/2012 11:14 PM, 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).

And then there's a list of other bugs that show up. Now you have two different 
types showing up as the same type (i.e. name) to the linker, and you've got 
weird collisions.

Really, a type that is the same only different is a recipe for endless subtle 
and ugly problems. It's a nightmare.



More information about the Digitalmars-d mailing list