Defines a constant binding in the current module and initializes it to a new function.
The following functions return the same values as they would if the function had been defined as a bare method with the same signature:
Calling some of the following reflective operations on a function defined with define function may be an error:
define (adjectives) function (name) (parameters) => (values) (options)
(body)
end function (name)
| adjectives | Gwydion Dylan allows the following adjectives: not-inline, default-inline, may-inline, inline, inline-only, movable, flushable. The default is sealed. See Define adjectives. |
| name | A binding name. |
| parameters | A parameter list. May be empty. |
| values | A value list. May be omitted. |
| body | A method body; a series of semicolon-separated expressions. |