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