On Fri, 9 May 2025 17:53:28 +0200 (CEST), Walter Pachl wrote: >With Use Arg Strict you can default the missing arguments!?! >> Glenn Knickerbocker <n...@bestweb.net> hat am 09.05.2025 17:14 CEST >> geschrieben: >> I'd want to make this more general with: >> Use Arg date, format, sep >> But it's a pain when a function cares whether an argument is omitted vs. >> blank or null.
No, other way around--Use Strict Arg *fails* if arguments are missing. And you can't even provide a default separator based on the format, because some formats don't allow a separator at all. I never got why Mike didn't allow the null string to substitute for an unused argument in the original built-in functions. There weren't any cases where it would have been ambiguous, because the optional arguments were all numbers, characters, or words. But even if he had allowed it originally, it still couldn't have worked for the separators when those were added to DATE(), because they *can* be the null string. ¬R _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users