Reference counted containers prototype

Jonathan M Davis jmdavisProg at gmx.com
Tue Dec 27 03:48:50 PST 2011


On Tuesday, December 27, 2011 12:32:01 deadalnix wrote:
> The first thing that I see looking at the source code is how many null
> check you'll find in RefCounted . As the RefCounted struct is useless
> without a payload, we should ensure that the payload exists, in all
> cases, and not null check at every operation.

But then it would be impossible to declare a container before initializing it, 
and that would be a problem.

- Jonathan M Davis


More information about the Digitalmars-d mailing list