TypeTuple ABI mangling

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 26 12:46:21 PDT 2014


On Saturday, 26 July 2014 at 19:44:49 UTC, Iain Buclaw wrote:
> Hi,
>
> TypeTuples have a special mangling convention in the compiler.
>
> As per the docs (ref: http://dlang.org/abi.html)
>
> TypeTuple:
>     B Number Arguments
>
>
> However after some cursory tests, it seems that the most 
> obvious examples of, passing a tuple via parameters, returning 
> a tuple, declaring a tuple variable, etc... all get lowered 
> before mangling.
>
> So at first glance, this mangling convention is redundant.
>
> Unless of course someone can post an example which triggers 
> mangling of TypeTuples...
>

NB. This is purely for the purpose of demangling in binutils.


More information about the Digitalmars-d mailing list