Hello Patrick, I'm picking the detail I can quickly answer right now :-)
On 05.07.2013, at 11:58, Patrick Ohly <[email protected]> wrote: > [...] > I broke MERGEFIELDS() when introducing that mode, see attached patch. It > is now still not backward-compatible. Is there a way to have a builtin > function with an optional parameter? There is, see the OPTVAL() in the param definitions, for example param_find in scriptcontext.cpp. In the function implementation, you can test for isAssigned() to see if the parameter was specified in the call or not. > If not, then should I introduce a > MERGEFIELDS() without parameter and a MERGEFIELDS_WITH_MODE(mode)? No, an optional mode parameter is better. Best Regards, Lukas _______________________________________________ os-libsynthesis mailing list [email protected] http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis
