Nu Class Reference

NuSuper

The Nu superclass proxy, an implementation detail used by Nu methods.

Superclass: NSObject
Declared in: objc/Nu.h

Instances of this class in Nu methods act as proxies for object superclasses. Each time a Nu implementation of a method is called, a NuSuper instance is created and inserted into the method's execution context with the name "super". This allows method implementations to send messages to superclass implementations. Typically, there is no need to directly interact with this class from Nu.

Methods

+ (NuSuper *) superWithObject: (id) o
ofClass: (Class) c
Create a NuSuper proxy for an object with a specified class. Note that the object class must be explicitly specified. This is necessary to allow proper chaining of message sends to super when multilevel methods are used (typically for initialization), each calling the superclass version of itself.

in objc/Nu.h

- (id) evalWithArguments: (id) cdr
context: (NSMutableDictionary *) context
Evalute a list headed by a NuSuper proxy. If non-null, the remainder of the list is treated as a message that is sent to the object, but treating the object as if it is an instance of its immediate superclass. This is equivalent to sending a message to "super" in Objective-C.

in objc/Nu.h

- (NuSuper *) initWithObject: (id) o
ofClass: (Class) c
Initialize a NuSuper proxy for an object with a specified class.

in objc/Nu.h