Proposals: Synchronization
Kent Boogaart
kentcb at internode.on.net
Mon Jul 24 14:49:27 PDT 2006
> This would make this currently legal syntax illegal:
>
> void fn() {
> synchronized {
> // stuff
> }
> }
>
> ie. where the synchronization object is implicit. I suppose its value is
> debatable, but I think it's sufficiently useful that I wouldn't want it to
> be illegal.
>
I see that as a good thing, though. That is because the implicit syntax is
locking on this (I assume), which - as discussed - is a bad thing.
Regards,
Kent Boogaart
More information about the Digitalmars-d
mailing list