Article View: comp.lang.pl1
Article #33Re: Named constant values in Multics PL/I
From: Peter Flass
Date: Sun, 29 Nov 2026 18:00
Date: Sun, 29 Nov 2026 18:00
36 lines
2778 bytes
2778 bytes
[alt.os.multics is fairly inactive] 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:
<11ehp87$3ndnr$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-mailShow 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: comp.lang.pl1 Subject: Re: Named constant values in Multics PL/I Date: Sun, 29 Nov 2026 11:00:39 -0700 Organization: A noiseless patient Spider Lines: 36 Message-ID: <11ehp87$3ndnr$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 29 Nov 2026 18:00:40 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3913467"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186WZSDXbTBmPzY272YVFNW"; posting-host="dc77e3f4b0c2922ed7181dac5227831d" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:69L6ZN3FuCKEZ/Nkt0bj4tfASac= sha256:+H2BuJ4yLUFLp0usH8k5dakon8Rrnbb2jGRimYHnLMk= sha1:98HaCxPIqz19OS4lwM9E1xZSBMk= sha256:bHgvY2v/AMI9JhUzrLRUwPqsSKH3icbYwkqxoNZYcXo= Content-Language: en-US