Objectica
Symbol
Constant
Final
Class
Interface
ClassAttributes
Override
See Also »
|
Overview
Reference Guide
More About »
Mutable
Mutable.
field
marks a
field
that may be changed even in a method with a
Constant
modifier.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
This loads the package.
In[1]:=
First, we define a class with a field and two methods with a
Constant
qualifier, one bound to the class by means of
Static
.
In[2]:=
As expected, the methods fail.
In[3]:=
Out[3]=
In[4]:=
Out[4]=
If we mark the fields with
Mutable
, the methods succeed.
In[5]:=
In[6]:=
Out[6]=
In[7]:=
Out[7]=
SEE ALSO
Constant
Final
Class
Interface
ClassAttributes
Override
Virtual
Private
Static
Abstract
Property
External
Transient
Mutable::method
RELATED LINKS
Objectica
Symbols and Numbers (makers of Objectica)
MORE ABOUT
Overview
Reference Guide