Hidden argument kind antipattern

dsimcha dsimcha at yahoo.com
Tue Apr 19 17:04:43 PDT 2011


On 4/19/2011 7:47 PM, Vladimir Panteleev wrote:
> David's library evaluates these expressions *in different threads*!
>

Minor correction:  No it doesn't.  It constructs a WorkerLocalStorage 
object in a regular class method in the thread from which 
workerLocalStorage() was called.  It does evaluate the lazy parameter 
more than once, but all the multithreading stuff happens **after** 
workerLocalStorage() returns.  I still see your point, though.


More information about the Digitalmars-d mailing list