how to use shared keyword in 2.063 version?

Jonathan M Davis jmdavisProg at gmx.com
Fri May 31 17:57:47 PDT 2013


On Friday, May 31, 2013 23:26:19 Anthony Goins wrote:
> To create a shared object you need shared this ctor.
> 
> immutable this() for immutable,
> 
> and const this() for const.
> 
> Check out the change log. #2 on the list.

Either that or you create it as thread-local and cast to shared.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list