Read Me - Common Public License V1.0 - Copyright Notice(©)

enhanced


>>-enhanced(methods-+---------------+-)------------------------><
                    | +-----------+ |
                    | V           | |
                    +---,argument-+-+

Returns an enhanced new instance of the receiver class, with object methods that are the instance methods of the class, enhanced by the methods in the collection [methods] . The collection indexes are the names of the enhancing methods, and the items are the method objects (or strings or arrays of strings containing method code). (See the description of define (.) You can use any collection that supports a [supplier] method.

[enhanced] sends an [init] message to the created object, passing the [argument] s specified on the [enhanced] method.

Class class - enhanced method

/* Set up rclass with class method or methods you want in your */
/* remote class */
rclassmeths = .directory~new

rclassmeths["DISPATCH"]=d_source     /* d_source must have code for a  */
                                     /* DISPATCH  method.              */
/* The following sends init("Remote Class") to a new instance */
rclass=.class~enhanced(rclassmeths,"Remote Class")

Read Me - Common Public License V1.0 - Copyright Notice(©)