Thanks. I was pretty sure that was the case. I just wanted to make sure I
was not missing something. It is documented as "C++ only." But it's really
"the caller only has to be C++." I guess the called function could be C; you
would just have to have a different header declaration -- not unheard of,
e.g.
#ifdef __cplusplus
extern "OS" {
#else
#pragma linkage(CSRSI_calltype,OS)
#endif
> fairly easy to test
For sure. And I am testing away. Just did not want to bother if someone
smarter than I said "no, silly, that cannot work because ..."
Charles
-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Jack J. Woehr
Sent: Thursday, May 26, 2016 3:43 PM
To: [email protected]
Subject: Re: C++ default parameter question
Charles Mills wrote:
> The reason I am asking ... suppose FOO is a function implemented in
> assembler, not in C++. The declaration of the default parameter and
> the invocation with the parameter omitted will still work, right?
Apparently so. Of course, fairly easy to test!
http://dewkumar.blogspot.com/2012/01/how-is-default-function-argument-to.htm
l
http://stackoverflow.com/questions/3170111/c-default-argument-value
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN