Steven Schveighoffer Wrote:

> On Wed, 15 Sep 2010 10:26:35 -0400, Sean Kelly <[email protected]>  
> 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.

Reply via email to