Enforced immutability: Difference between revisions
Content added Content deleted
Alextretyak (talk | contribs) (Added 11l) |
|||
Line 4: | Line 4: | ||
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. |
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. |
||
<br><br> |
<br><br> |
||
=={{header|11l}}== |
|||
Prepend V/var keyword with minus sign to make variable immutable: |
|||
<lang 11l>-V min_size = 10</lang> |
|||
=={{header|8th}}== |
=={{header|8th}}== |