TypeFunction example creatiing a conversion matrix

Stefan Koch uplink.coder at gmail.com
Thu Oct 1 13:41:58 UTC 2020


On Thursday, 1 October 2020 at 12:39:45 UTC, Adam D. Ruppe wrote:
> On Thursday, 1 October 2020 at 08:57:12 UTC, Stefan Koch wrote:
>> At those scales there is no difference in compile time.
>> However there is a difference in file size.
>
> Your assert(__ctfe) PR should fix this.

Not sure ... not all of it.
0000000000000000 r _TMP0
0000000000000002 r _TMP1
0000000000000038 r _TMP10
000000000000003d r _TMP11
0000000000000042 r _TMP12
0000000000000048 r _TMP13
000000000000004e r _TMP14
0000000000000052 r _TMP15
0000000000000059 r _TMP16
000000000000005d r _TMP17
0000000000000062 r _TMP18
0000000000000067 r _TMP19
0000000000000008 r _TMP2
000000000000000f r _TMP3
0000000000000016 r _TMP4
000000000000001e r _TMP5
0000000000000023 r _TMP6
0000000000000029 r _TMP7
000000000000002f r _TMP8
0000000000000036 r _TMP9

I think those are string literals.
which the static foreach version generates.
Those won't go away, it's hard to proof they are not used within 
the current framework of dmd.


More information about the Digitalmars-d mailing list