Ah, "to confuse people by saying that the type mismatches". Not that what you wrote was wrong, just I didn't read it that way.
Thanks. -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Jon Perryman Sent: Tuesday, October 21, 2025 5:10 PM To: [email protected] Subject: Re: Anyone using XL C? On Tue, 21 Oct 2025 15:05:25 -0400, Phil Smith III <[email protected]> wrote: >Can you explain these two sentences for me? I'm sure they're coherent but not >to me: Most of the world uses GCC C instead of IBM XL C. >> GCC does not have this limit and is more likely to confuse people that type >> mismatches. >"that type mismatches" doesn't scan for me? a.c:4:51: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] GCC C will not produce this compile time error. GCC C programmers are far more likely to exceed the max printf substitutions than type mismatch. >>Also, GCC does not parse arg 1 at compile time. >"arg 1" of what? In the case of PRINTF, arg 1 is the formatting string. PRINTF is not the only function to use this implementation technique (e.g. SQL queries). Are these other implementations restricted to 10 arguments. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
