It struck me that it seemed like a static declared const need not be "made 
reentrant." But what if someone were to cast it non-const? You gun, your 
bullet, your foot.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Paul Gilmartin
Sent: Monday, November 17, 2014 9:08 PM
To: [email protected]
Subject: Re: How declare in C++ a constant in an assembler module?

On Mon, 17 Nov 2014 17:55:10 -0800, Charles Mills wrote:

>Bingo! Thanks.
> 
IIRC, the SAS/C compiler put them inline if declared "const"; in WSA otherwise. 
 I believe it does not violate ANSI C if an object is declared "const" in one 
translation unit, with "const"
omitted in another, as long as it is not modified by the former.
Of course, this caused chaos with SAS/C.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to