On Sun, Feb 01, 2015 at 22:32:36 +0000, Sativa via Digitalmars-d-announce wrote: > What I mean is, Do we really need to know the default arguments > or are we just having to explicitly use them to make the name > mangling work? > > If it is the latter, then surely couldn't the D compiler sort of > have a "wild card" type of default parameter where the compiler > allows any such argument to work? > > i.e., unless we are actually explicitly needed the default > argument in some way it seems that we can just derive it's > "mangled" version from the C++ object data and use that directly > in the D mangled version?
IIRC, C++ default arguments are handled at compile time and are not part of the ABI. --Ben