March 31, 2004
Kris schrieb:
> You might consider constructing a Retry class where the various methods
> accept either a delegate, or an Interface implementer. Such things are very
> easy to mold to your own requirements, and don't require language
> extensions.
> 
> - Kris

It better not be a class, but simply a group of loose function pointers. But yes, i was going to suggest exactly this. This might reduce coupling between unrelated library features.

What can also be useful, is an Auto class which overwrite overwrite some of these pointers, but restore them back as it gets destroyed, thus allowing to temporarily change behaviour with convenience.

-eye
1 2
Next ›   Last »