function-return-values

Returns information about the values returned by a function.  Two values are returned:

  • return-value-types is a sequence of the types of values returned by the function.  The length of the sequence equals the number of required return values of the function.  The first element of the sequence is the type of the first return value, the second is the type of the second return value, etc.  This sequence returned should never be destructively modified.  Doing so may cause unpredictable behavior.
  • rest-return-value indicates whether the function returns a variable number of values and, if so, the type of values that may be returned after the required return values.  If the function does not return a variable number of values, #f is returned; otherwise a type is returned.

Exported from

Arguments

functionAn instance of <function>.

Values

return-value-typesAn instance of <simple-object-vector>.
rest-return-valueAn instance of type-union(<false>, <type>).
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of objects that can be applied to arguments.
The class of simple vectors that may have elements of any type.