Jump to content

Enforced immutability: Difference between revisions

(→‎{{header|UNIX Shell}}: adding c shell)
Line 1,077:
The Unix shell does not support constants, but variables can be marked as readonly for the same effect.
 
{{works with|Bourne Shell}}
<lang sh>PIE=APPLE
readonly PIE</lang>
 
==={{header|C Shell}}===
<lang csh>set -r PIE = APPLE</lang>
 
=={{header|XPL0}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.