[Issue 221] New: Inconsistent name mangling of bool (a relic of 'bit')

Thomas Kuehne thomas-dloop at kuehne.cn
Thu Sep 14 00:23:36 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-06-23:
> http://d.puremagic.com/issues/show_bug.cgi?id=221

> 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.

Added to DStress as
http://dstress.kuehne.cn/compile/b/bool_07_A.d
http://dstress.kuehne.cn/compile/b/bool_07_B.d
http://dstress.kuehne.cn/compile/b/bool_07_C.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFCP9OLK5blCcjpWoRArQ5AJ4zICwdJn/+XCb25p/EEl9NJYzlOgCfeaQR
di6qDDkQF3WGNA0dRlieCVE=
=QXjy
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list