TypeFunction example creatiing a conversion matrix

Adam D. Ruppe destructionator at gmail.com
Fri Oct 2 14:42:15 UTC 2020


On Friday, 2 October 2020 at 14:34:54 UTC, Stefan Koch wrote:
> Replace the static immutable with enum and check again.

It is identical again. As expected.

# with a string literal
$ dmd -betterC bc
$ nm bc.o
0000000000000000 t
                  U _GLOBAL_OFFSET_TABLE_
0000000000000000 W main
                  U printf

# with the template

$ dmd -betterC bc
$ nm bc.o
0000000000000000 t
                  U _GLOBAL_OFFSET_TABLE_
0000000000000000 W main
                  U printf




More information about the Digitalmars-d mailing list