[Issue 221] New: Inconsistent name mangling of bool (a relic of 'bit')
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 23 05:34:09 PDT 2006
http://d.puremagic.com/issues/show_bug.cgi?id=221
Summary: Inconsistent name mangling of bool (a relic of 'bit')
Product: D
Version: 0.160
Platform: PC
OS/Version: Windows
Status: NEW
Severity: minor
Priority: P4
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: clugdbug at yahoo.com.au
Long ago, bit was name-mangled as 'x', but now that bit is gone, bool is
name-mangled as 'b'.
However, for function parameters, bool is still name-mangled as 'x' rather than
the expected 'b'.
bool.mangleof == "b"
but...
(void function(bool)).mangleof == "PFxZv"
instead of the more natural "PFbZv"
This means that one of the few unused name-mangling letters ('x') is wasted.
Probably an implementation quirk rather than a bug.
--
More information about the Digitalmars-d-bugs
mailing list