Enforced immutability: Difference between revisions

Content added Content deleted
(→‎{{header|Wren}}: Added a supplementary entry)
m (Oops, removed duplicate Wren header.)
Line 1,369: Line 1,369:
{{libheader|Wren-trait}}
{{libheader|Wren-trait}}
Since the above entry was written, a ''Const'' class has been added to ''Wren-trait'' which simulates constants to some extent though the values used need themselves to be immutable for this to be water-tight.
Since the above entry was written, a ''Const'' class has been added to ''Wren-trait'' which simulates constants to some extent though the values used need themselves to be immutable for this to be water-tight.
=={{header|Wren}}==
<syntaxhighlight lang="ecmascript">import "./trait" for Const
<syntaxhighlight lang="ecmascript">import "./trait" for Const