synchronized (this[.classinfo]) in druntime and phobos

Steven Schveighoffer schveiguy at yahoo.com
Thu May 31 12:25:42 PDT 2012


On Thu, 31 May 2012 14:55:31 -0400, Dmitry Olshansky  
<dmitry.olsh at gmail.com> wrote:

>
> Dunno. In fact __lock/__unlock could be artificially hidden from user  
> but not compiler with his magic rewrites.
> But I believe there is value in having access to lock/unlock for those  
> select cases where it's beneficial.

__ctor and __dtor are accessible, but nobody abuses them.

I think if we use the double-underscore terminology, this would be fine.

-Steve


More information about the Digitalmars-d mailing list