On Monday, 13 June 2022 at 07:38:54 UTC, user1234 wrote:
On Thursday, 9 June 2022 at 23:50:10 UTC, user1234 wrote:
On Thursday, 9 June 2022 at 21:20:27 UTC, JG wrote:
[...]

No, for now there if there are other ways they are as hacky as yours.

The compiler usually uses a global counter to generate temporaries. There's [been attempts] to expose it, exactly so that users can generate unique names, but that did not found its path in the compiler.

[been attempts]: https://github.com/dlang/dmd/pull/10131

Here's another one. That's nice if people are able to find tricks but there's a need to have a clean way to do that. i.e language feature.

Damnit, forgot [the link]

[the link]: https://github.com/dlang/dmd/pull/5633

Reply via email to