1.66 class get_method

A get_method object defines the mapping from a selector to an implementation for the get virtual machine operation. For details see class method and class behaviour.

See also
- class type
- host<-call
- class method
- tool ClassBrowser
- class ?

1.66.1 Instance variables

get_method <- return_type: type
Describes the type of the value returned by this method. It is first of all intended for documentation and consistency checking purposes.
See also
- !converted_return_value
- !bad_return_value

1.66.2 Send methods

get_method ->initialise: name=name, return=[type], types=[vector], implementation=function|host_method, summary=[string]*, source=[source_location]*, group=[name]*
The get_method->initialise of a get_method takes one additional argument with respect to method->initialise: the return_type. If the actually returned value does not satisfy this type, type conversion is attempted. If the conversion succeeds, the error converted_return_value is raised and the converted value is returned. If the conversion is not successful, the error bad_return_value is raised and the method fails.

1.66.3 Get methods

get_method <-get: receiver=object, argument=unchecked ... -> value=unchecked
Invoke get-behaviour on object. Similar to send_method->send. After the implementation returns a result, this result is passed to the get_method<-return_type for validation.