Enforced immutability: Difference between revisions

add Ada
(added BASIC and PowerBASIC)
(add Ada)
Line 1:
{{task}}Demonstrate any means your language has to prevent the modification of values, or to create objects that cannot be modified after they have been created.
 
=={{header|Ada}}==
Ada provides the <code>constant</code> keyword:
<lang Ada>Foo : constant := 42;
Foo : constant Blahtype := Blahvalue;</lang>
 
=={{header|BASIC}}==
256

edits