getNext

Shin Fujishiro rsinfu at gmail.com
Tue Jul 13 04:02:02 PDT 2010


Shin Fujishiro <rsinfu at gmail.com> wrote:
> How about a TLS variable?
> 
> template temporary(T)
> {
>     static T temporary;
> }
> E* getNext(R, E)(ref R range, ref E store = temporary!E);

Yeah, I just missed it.  TLS is not usable.  I had spoken carelessly...


Shin


More information about the Digitalmars-d mailing list