Method annotations()
- Method
annotations
array(multiset(Pike.Annotation)) annotations(object|program|function(:void)x,bool|voidrecurse)- Description
Return an array with the annotations for all symbols in
x.- Parameter
x objectFor objects which define lfun::_annotations() that return value is used.
For other objects an array with annotations for all non-protected symbols is returned.
programReturns an array with annotations for all non-protected constant symbols.
- Parameter
recurse Include annotations recursively added via inherits.
- Returns
The order of the resulting array is the same as that of indices() for the same
x.- Note
This function was added in Pike 8.1.
- See also
indices(), values(), types(), lfun::_annotations(), ::_annotations(), Program.annotations