Enforced immutability: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
m (→{{header|J}}) |
||
Line 468: | Line 468: | ||
The values associated with a J name can be modified, but that is a modification of the association, and the original value remains. |
The values associated with a J name can be modified, but that is a modification of the association, and the original value remains. |
||
(Tangentially: note that J has a rich language for defining numeric constants. For example, 2*pi represented as a floating point number would be 2p1. These are analogous to names but can never be modified.) |
|||
<lang j> B=: A=: 'this is a test' |
<lang j> B=: A=: 'this is a test' |