On Fri, Oct 25, 2002 at 12:25:10PM +0200, Jean-Marc Lasgouttes wrote:
> Andre> So a boolean flag or a new function seems needed...
> 
> Yes, but it would be nice to avoid multiplication of parameters for
> each of these uses. So we have to know how each inset is supposed to
> behave.

Inset::asString(bool forlabel, bool fortoc)?

or 

enum how {dontcare, forlabel, fortoc...}
Inset::asString(how = dontcare);

or

Inset::asString();
Inset::asStringInLabel();
Inset::asStringInToc();

[And I still think I'd prefer the last option...]

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