static map as a type function
schveiguy at gmail.com
Wed Sep 23 14:31:15 UTC 2020
On 9/23/20 10:17 AM, Stefan Koch wrote:
> On Wednesday, 23 September 2020 at 14:05:50 UTC, Steven Schveighoffer
>> It makes me wonder -- can the compiler determine identical lambdas and
>> reduce template instantiations? This was one of the problems with
>> moving from string lambdas to actual lambdas.
> In general no. Even for string lambda's that'd be wrong.
> We have context dependent tokens ...
The lambda I wrote has no context dependent tokens.
String lambdas were instantiated in one place, so there were not
problems with context (as long as the string was the same).
More information about the Digitalmars-d