newMethodDefinition

fun newMethodDefinition(definitionMethod: A_Method, definitionModule: A_Module, bodyBlock: A_Function): A_Definition

Create a new method signature from the provided arguments.

Return

A method signature.

Parameters

definitionMethod

The method for which to create a new method definition.

definitionModule

The module in which this definition is added.

bodyBlock

The body of the signature. This will be invoked when the message is sent, assuming the argument types match and there is no more specific version.