swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name Space conflicts and Swarm?


From: Marcus G. Daniels
Subject: Re: Name Space conflicts and Swarm?
Date: 02 Jun 1999 15:50:50 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.3.10

>>>>> "PJ" == Paul Johnson <address@hidden> writes:

PJ> Then I created a new class called "Offer" and tried to use it in
PJ> the class that had manage:Offer.  All hell broke loose, error
PJ> messages at compile time appeared in manage:Offer saying that
PJ> "anOffer" was undefined. 

In the grammar..

http://developer.apple.com/techpubs/macosxserver/System/Documentation/Developer/YellowBox/TasksAndConcepts/ObjectiveC/grammar.htm

compare grammar.htm#724, and #740-2.

PJ> I've run into it with methods
PJ> like "getPosition" and "getCount" as well.  I've fixed this by
PJ> just renaming my methods so they don't have the same names as
PJ> methods in the swarm library.

PJ> But I don't understand why it happens.  If on the inheritance tree
PJ> there is a class with a method getStatus, my new method ought to
PJ> override it.  If there's a method by that name in another class,
PJ> why does the problem arise at all?

Objective C isn't polymorphic.  If you want to override a method,
the argument and return types all should match up.

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]