On Fri, 2013-07-05 at 14:05 +0200, Lukas Zeller wrote: > On 05.07.2013, at 11:58, Patrick Ohly <patrick.o...@intel.com> 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.
I've implemented that now in the patch that'll appear in the FDO master git branch soon. -- Best Regards, Patrick Ohly The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter. _______________________________________________ os-libsynthesis mailing list os-libsynthesis@synthesis.ch http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis