How to make a struct containing an associative array to deeply copy (for repeated usage in foreach) ?

novice2 sorryno at em.ail
Mon Mar 18 10:08:27 UTC 2024


On Monday, 18 March 2024 at 10:05:43 UTC, novice2 wrote:
> On Monday, 18 March 2024 at 08:50:42 UTC, rkompass wrote:
>> Or are the types T and S are put on the stack like ordinary 
>> arguments and the usage of arg1 and arg2 within the function 
>> is enveloped in switches that query these Types?
>
> IMHO, only if you instantiate (make call) templfunc, then 
> compiler create function with specified types.
> Function created only once for given types combination.

this also can be helpfull:
https://dlang.org/spec/template.html#common_instantiation


More information about the Digitalmars-d-learn mailing list