Just one time

Andrea Fontana via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Oct 20 09:01:57 PDT 2015


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?


More information about the Digitalmars-d-learn mailing list