
21 May
2010
21 May
'10
11:34 p.m.
On Fri, 21 May 2010 17:13:43 -0500, Terry Golubiewski wrote:
Another thing to consider is that using a single type-list with over 100 message types will significantly (to me) slow compile time and may approach compiler limits.
I was worrying about this.
You can avoid these limits by grouping messages into related groups or by using a dynamic dispatcher that registers callbacks at runtime initialization.
My 'widgets' will be organised in a class heirarchy. I supposed I can use a separate list for each subclass. The dispatcher can first try the widget class's list and then its base class's list and so on. This should keep the size of any individual list under 20. Alex