Home
Random
Log in
Settings
About Rosetta Code
Disclaimers
Rosetta Code
Search
Enforced immutability: Difference between revisions
Page
Discussion
← Older edit
Newer edit →
Enforced immutability
(view source)
Revision as of 13:09, 29 January 2018
5 bytes added
,
6 years ago
→{{header|Julia}}
Revision as of 12:21, 29 November 2017
(
view source
)
CalmoSoft
(
talk
|
contribs
)
(
→{{header|Ring}}
)
← Older edit
Revision as of 13:09, 29 January 2018
(
view source
)
rosettacode>Gpapo
(
→{{header|Julia}}
)
Newer edit →
Line 452:
=={{header|Julia}}==
{{works with|Julia|0.6}}
<lang julia>
▼
const x = pi
▲
<lang julia>
const x = 1
x = e
x = π # ERROR: invalid ridefinition of constant x</lang>
</lang>
Produces: ERROR: LoadError: invalid redefinition of constant x
=={{header|Kotlin}}==
Anonymous user
rosettacode>Gpapo