Why can my instance methods not call class methods without the class specifier?

class MyClass
{
    func
    foo()
    {
        classMethod()
    }

    class
    func
    classMethod()
    {
    }
}

Why do I have to call MyClass.classMethod()? Just a choice made by the language 
designers to distinguish the call at the call site? I like C++'s way of 
treating all static methods as directly available to the instance.

-- 
Rick Mann
[email protected]



_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to