IOS Functions

function object/class-instance name [args]

return the instance of the class name

Param name:

name of the class or the class instance

Type name:

symbol or instance

Return:

class

Rtype:

instance

class-instance is usually used in templates to map the supplied class names into class instances. Circumstances might be such that it is called in regular flow where the class’ name has been evaluated to the class instance in which case class-instance simply returns the class instance.

function object/add-method! gf m

add method m to generic function gf’s list of methods

Param gf:

generic function

Type gf:

instance

Param m:

method

Type m:

instance

Return:

#<unspec>

m will override any existing method with the same specializers

add-method! would not normally be called by users as methods are implicitly added through the use of define-method.

See also

define-method

function object/instance-of? o cl

test if o is an instance of class cl

Param o:

object to test

Param cl:

class to test

Type cl:

class

Return:

#t if o is an instance of cl, #f otherwise

function object/slot-ref obj slot

return the value of slot slot in obj

Param obj:

object

Type obj:

instance

Param slot:

slot name

Type slot:

symbol

Return:

value

Raises ^rt-slot-not-found-error:

function object/slot-set! obj slot val

set the value of slot slot in obj to val

Param obj:

object

Type obj:

instance

Param slot:

slot name

Type slot:

symbol

Param val:

value

Type val:

any

Return:

#<unspec>>

Raises ^rt-slot-not-found-error:

function object/%cpl-args args

An accelerator for

map (function (arg) (class-cpl (class-of arg))) args
Param args:

method arguments

Type args:

list

Return:

list of argument CPLs

function object/dump-instance o

dump instance o

Param o:

object

Type o:

instance

Return:

#<unspec>

Last built at 2024-05-17T06:10:42Z+0000 from 62cca4c (dev) for Idio 0.3.b.6