I often find myself wanting to forward arguments to another function, most commonly for logging. For example: ----- void setupTimer ( ulong index, ulong timer_id, Duration duration ) { log.trace(__FUNCTION__, index, timer_id, duration); ... } ----- But I always have to pass the parameters manually. It would be very convenient if I could write it like this: ----- void setupTimer ( ulong index, ulong timer_id, Duration duration ) { log.trace(__FUNCTION__, __PARAMETERS__); ... } -----
I've renamed the keyword to __ARGS__, as I think that makes more sense. It's not in use currently right?
*** This issue has been marked as a duplicate of issue 22291 ***