Nick Wellnhofer wrote on 7/30/14 1:27 PM:


> I can see two solutions.
> 
> A. Keep the Perl wrapper possibly using different names for the original
> method and the wrapper. Unfortunately, this wouldn’t be backward compatible.
> At least, we could choose whether to break either implementors or users of
> ‘make_compiler’.
> 
> B. Emulate the default value on the C level, for example by using a special
> float constant to signal that the default should be used:
> 
> public abstract incremented Compiler* Make_Compiler(Query *self, Searcher
> *searcher, float boost = special_value, bool subordinate = false);

Or (C) (which Nick suggested to me on irc) is making 'boost' a required param,
which means the method signature changes but not the method name. I like that 
best.



-- 
Peter Karman  .  http://peknet.com/  .  [email protected]

Reply via email to