swarm-support
[Top][All Lists]
Advanced

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

Re: Two -getX()'s?


From: Marcus G. Daniels
Subject: Re: Two -getX()'s?
Date: 03 Sep 1999 16:00:46 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "D3" == donalson  <address@hidden> writes:

D3> I have an object "mussel"
D3> (the animals that grow in the intertidal zone) that has two
D3> procedures, - (double) getX() and - (double) getY that return the
D3> X and Y coordinates of the individual.  (I am implementing a
D3> continuous space model.)  The problem is that the compiler/linker
D3> seems to be getting then confused with -(int) getX() and - (int)
D3> getY() from gui.h.  Shouldn't it be able to differentiate between
D3> procedures from different objects? 

Unlike Java, in Objective C a method is characterized only by its name.
The number of arguments is recorded by colon placeholders in the name,
but there is no typing information.


                  ==================================
   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]