Accessing __traits(identifier) for variadic function arguments

2024-10-10 Thread Alexa Schor via Digitalmars-d-learn
Hello! I've been working on building some debug print functions and have been using the `__traits(identifier, x)` to get the name of parameters passed into a function, trying as best I can to replicate the functionality of the useful C++ [`#` operator](https://gcc.gnu.org/onlinedocs/cpp/Strin

Re: Accessing __traits(identifier) for variadic function arguments

2024-10-11 Thread Alexa Schor via Digitalmars-d-learn
On Friday, 11 October 2024 at 06:04:44 UTC, Salih Dincer wrote: On Friday, 11 October 2024 at 03:01:54 UTC, Alexa Schor wrote: [...] ```d import std.stdio, core.interpolation; void show(Args...)(InterpolationHeader hdr, Args args, InterpolationFooter ftr) {  foreach (arg; args) {    stat