🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.multics
Article #6

Re: Named constant values in Multics PL/I

#6
From: Peter Flass
Date: Sun, 29 Nov 2026 03:11
34 lines
2815 bytes
On 11/28/26 19:08, David Meyer wrote:
> IBM and Kednos PL/I compilers support the naming of problem/
> computational data value constants with the %declare and %replace
> preprocessor statements, respectively.
> 
> However, I can't find anything like this in the Honeywell Multics PL/I
> manuals on bitsavers.org. Am I missing something, or does Multics PL/I
> have no way to indicate a constant data value other than with a literal?
> 

DCL x FIXED BIN INIT(n) STATIC OPTIONS(CONSTANT);

The <options attribute> may specify the parenthesized keyword "constant" 
for items that are not entry values.
Specification of "constant" causes the variable to be allocated in the 
text section of the object segment.
The completed <attribute set> of a variable for which 
"options(constant)" has been
specified must contain the <internal attribute>, the <static attribute>, 
and either the <initial attribute> or the <structure attribute>. If the 
latter is true, all nonstructure members of the structure must contain 
the <initial attribute>.
Except for its allocation, the variable is treated semantically as
any other internal static variable. It is an error to change the value 
of a variable for which "options(constant)" has been specified during 
execution of a program.

This is what Iron Spring PL/I does for items declared with the "VALUE" 
attribute instead of "INITIAL".  I'll have to add "OPTIONS(CONSTANT)". 
It doesn't have the same effect as %REPLACE or preprocessor %DECLARE, 
which do a simple text replacement.

Multics does have a PL/I preprocessor "pmac" which has %REPLACE and 
%SET, among other things.
Technical Details
Message-ID: <11eg557$35rgc$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <87tsl0o0e2.fsf@localhost>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Peter Flass <Peter@Iron-Spring.com>
Newsgroups: alt.os.multics
Subject: Re: Named constant values in Multics PL/I
Date: Sat, 28 Nov 2026 20:11:33 -0700
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <11eg557$35rgc$1@dont-email.me>
References: <87tsl0o0e2.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 29 Nov 2026 03:11:36 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3337740"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19r+XaHqMm3Btrhvj6zdCjt"; posting-host="d2a6471f6e330f99471760537c21923d"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:abcCU3GScfwbwQXTdEWmJ2i3gMk= sha256:OXLjBjQlpPqC+JK+pbZX4w/MEfqO/SR972aZB+MnBnM=
	sha1:JEooloBsT8xJIHmrXph2B+88iMo= sha256:X9a3cFcylSSLn+TcdFwnv+mihMvF8hD9Sc3YZMNQpPI=
In-Reply-To: <87tsl0o0e2.fsf@localhost>
Content-Language: en-US