On Thu, Oct 24, 2002 at 12:13:41PM +0200, Jean-Marc Lasgouttes wrote:
> John> We have lots of code that needs to know characteristics of the
> John> inset its looking at. Many of these are simple true/fase
> John> characterisations. It would be nice to avoid all the code
> John> handling these traits via virtual functions, if we could
> 
> Another solution is to add a 'flag' member to insets (unfortunately it
> cannot be static) which reports these capabilities. Or a single
> flags() virtual method which returns info like ISTEXTINSET|DELETABLE.

John's remaining complaint about the virtual function was the "need to
recompile all when a cabbility is added". This would not change that.

And I do not like this collection of random boolean flags more than the
virtual function approach. The latter is at least consistent with the rest
(we have virtual functions already) and more flexible (the trait could be
something other than a 'bool').

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to