(wrap-prop name ..subclauses) name: a sym subclauses: zero or more forms
C
Wraps another property in the same class.
Defines a getter and/or a setter method which wrap the equivalent methods
defined in a prop
clause. Wildcard wrappers are supported.
get
and set
must match the property which is being wrapped. For example, when wrapping
a prop clause which has a get
but no set
, the wrapper must also have a get
but
no set
.
The wrapper methods cannot use @field
- they should call
@base
instead.
(get)
is equivalent to (get (@base))
.
(set)
is equivalent to (set (x) (@base x))
.