Something needs to happen with shared, and soon.

Jacob Carlborg doob at me.com
Thu Nov 15 11:34:46 PST 2012


On 2012-11-15 11:52, Manu wrote:

> Interesting concept. Nice idea, could certainly be useful, but it
> doesn't address the problem as directly as my suggestion.
> There are still many problem situations, for instance, any time a
> template is involved. The template doesn't know to do that internally,
> but under my proposal, you lock it prior to the workload, and then the
> template works as expected. Templates won't just break and fail whenever
> shared is involved, because assignments would be legal. They'll just
> assert that the thing is locked at the time, which is the programmers
> responsibility to ensure.

I don't understand how a template would cause problems.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list