On Tuesday, 20 October 2015 at 16:01:58 UTC, Andrea Fontana wrote:
On Tuesday, 20 October 2015 at 15:55:47 UTC, John Colvin wrote:
Be aware that there will be one instance of val per thread, so
you are detecting the first run in each thread, not in the
program overall.
This is the kind of thing I'm interested in.
What happens if I call isFirstTime!"test" across different
modules? Does instatiation works in the same way for all
compilers/platform?
Other things to consider?
It should work exactly the same across modules, just one instance
per thread. Same on all platforms and compilers.