Contents (package MULK.OBJECTIVE-CL)


Macro DEFINE-OBJECTIVE-C-GENERIC-FUNCTION

Purpose:

Define a new Objective-C generic function.

Syntax:

define-objective-c-generic-function name lambda-list &body options

Arguments and Values:

name --- a symbol.

lambda-list --- a generic function lambda list.

options --- a list (not evaluated).

Description:

define-objective-c-generic-function is like defgeneric except in the following aspects:

  1. name is immediately replaced by a symbol interned in package objective-c-methods.

  2. The default value for the :generic-function-class option is objective-cl:objective-c-generic-function.

  3. The default value for the :method-class option is objective-cl:objective-c-method.

define-objective-c-generic-function recognises the same options as defgeneric, including :generic-function-class and :method-class.

Example:

See define-objective-c-method.

Note:

It is customary to use the #/ notation enabled by enable-method-syntax to write method names for define-objective-c-generic-function.

See also:

define-objective-c-method, define-objective-c-class