pure static

Timon Gehr timon.gehr at gmx.ch
Mon Jan 6 14:14:55 PST 2014


On 01/06/2014 09:35 PM, bearophile wrote:
>
>
> "pure static" data means that 'arr' get cleaned (overwritten by its
> init) at the entry of the function foo (just like for not-static
> variables), to keep the function referentially transparent.

It doesn't. The reinitialization may be observable through references 
obtained from earlier calls.


More information about the Digitalmars-d mailing list