D Concurrent GC
Sean Kelly
sean at invisibleduck.org
Wed Sep 15 10:13:07 PDT 2010
Steven Schveighoffer Wrote:
> On Wed, 15 Sep 2010 10:26:35 -0400, Sean Kelly <sean at invisibleduck.org>
> wrote:
>
> >
> > I could simply change it to a function that accepts a scope delegate. It
> > just isn't as efficient as the alias approach. But an indirect call is
> > pretty small potatoes in this case anyway. I tried this and it worked,
> > and the I ran into an issue where the object used for the lock
> > (classinfo for GCLock) was apparently null. I'll look into that today.
>
> Well, the alias version could be used for other callable types, whereas a
> delegate version can only be used for delegates. Not sure how important
> it is.
I think there needs to be a solution for this in the general case, but for this specific application it doesn't matter.
More information about the Digitalmars-d-announce
mailing list