digitalmars.D.learn - D equivalent of C++11's function local static initialization?
- Timothee Cour via Digitalmars-d-learn (10/10) May 16 2017 what's the best D equivalent of C++11's function local static initializa...
what's the best D equivalent of C++11's function local static initialization?
```
void fun(){
static auto a=[](){
//some code
return some_var;
}
}
```
(C++11 guarantees thread safety)
May 16 2017








Timothee Cour via Digitalmars-d-learn <digitalmars-d-learn puremagic.com>