Objectica`
Message
Class::condition
MORE INFORMATION
Generated when
fun
uses a
Condition
in the wrong place, like in
Class
[
any
]:={
member
=
val
,
fun
[
_/;
member
]
:=
val
}
.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
This loads the package.
In[1]:=
If a condition accesses a class member or the object generated from it, it cannot be placed inside a parameterlist of a method.
In[2]:=
Out[2]=
Moving the condition behind the closing bracket of the method allows to define the class.
In[3]:=
SEE ALSO
Class
RELATED LINKS
Objectica
Symbols and Numbers (makers of Objectica)