new A of b from c -- make a hash table of class A and
parent b initialized from c.
new A of b -- make a hash table of class A
and parent b.
new A from c -- make a new instance of class A
initialized from c.
new A -- makes a new instance n
of class A.
new AA of B from C := (A,b,c) -> ...to install the corresponding optional creation routine -- the value it returns will be converted so its class is A and its parent is b; this will involve copying unless the returned value is mutable and objects of class A are mutable.
If no installation routine has been installed, then c should be a hash table or a list, and it will be converted directly.
The class A should be a type of type, which means that Type is an ancestor of A and of the class of A.
Same as above, except c is missing. Use
new AA of B := (A,b) -> ...to install the initialization routine.
The class A should be a type of type, which means that Type is an ancestor of A and of the class of A.
The same as above except b is missing. Use
new AA from C := (A,c) -> ...to install the corresponding initialization routine.
Since no parent b has been provided, the value returned by the initialization routine will not have its parent reset. If there is no initialization routine the parent will be set to Nothing.
The class A should be a type, which means that Type is an ancestor of the class of A.
Same as above, except b and c are missing. Use new AA := A -> ... to install the initialization routine.
Since no parent b has been provided, the value returned by the initialization routine will not have its parent reset. If there is no initialization routine the parent will be set to Nothing.
The class A should be a type, which means that Type is an ancestor of the class of A.
The symbols NewMethod, NewOfMethod, NewFromMethod, and NewOfFromMethod are used internally for installation of the initialization routines.
See also: