Testing some singleton implementations

luka8088 luka8088 at owave.net
Mon Feb 10 04:32:41 PST 2014


On 10.2.2014. 10:52, Andrej Mitrovic wrote:
> On 2/9/14, luka8088 <luka8088 at owave.net> wrote:
>> What about swapping function pointer so the check is done only once per
>> thread? (Thread is tldr so I am sorry if someone already suggested this)
> 
> Interesting solution for sure.
> 
>>   // tls
>>   @property static typeof(this) function () get;
> 
> This confused me for a second since @property is meaningless for variables. :>
> 

Yeah. My mistake. It should be removed.



More information about the Digitalmars-d mailing list