#44 ✓resolved
Kelvin Sherlock

class_addMethod parameter name

Reported by Kelvin Sherlock | September 17th, 2008 @ 05:05 AM

The parameter list uses "types", the code uses "aType". One of them needs to change.

function class_addMethod(/Class/ aClass, /SEL/ aName, /IMP/ anImplementation, /String/types) {

if (aClass.method_hash[aName])
    return NO;

var method = new objj_method(aName, anImplementation, aType);

aClass.method_list.push(method);
aClass.method_dtable[aName] = method;

// FIXME: Should this be done here?
// If this is a root class...
if (!ISMETA(aClass) && GETMETA(aClass).isa == GETMETA(aClass))
    class_addMethods(GETMETA(aClass), methods);

return YES;

}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

Pages