Re: Collect the arguments of all the function calls at a compile time in the whole program.

2022-04-15 Thread Paul Backus via Digitalmars-d-learn
On Friday, 15 April 2022 at 18:11:11 UTC, BoQsc wrote: Let's say I have this example program. I want to get the arguments of all the `some_function();` in the whole program. **Even if the scope of the function call is never executed.** (Ex. due to IF statement being negative.) You can't do th

Collect the arguments of all the function calls at a compile time in the whole program.

2022-04-15 Thread BoQsc via Digitalmars-d-learn
Let's say I have this example program. I want to get the arguments of all the `some_function();` in the whole program. **Even if the scope of the function call is never executed.** (Ex. due to IF statement being negative.) I tried to use `__traits` but it seems to not gather any information a

Re: RefCounted

2022-04-15 Thread JG via Digitalmars-d-learn
On Wednesday, 13 April 2022 at 20:47:33 UTC, JG wrote: Hi, I would have thought that RefCounted!(T, RefCountedAutoInitialize.no) is to be used in place T* when I want reference counting instead of the usual garbage collection (or manual allocation). Perhaps this is wrong? [...] In case so