swarm-support
[Top][All Lists]
Advanced

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

Re: ObjC question about scope of methodes


From: Marcus G. Daniels
Subject: Re: ObjC question about scope of methodes
Date: 14 Feb 2000 09:40:20 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "GO" == Gadi Oron <address@hidden> writes:

GO> StatsSwarm.m:46: warning: multiple declarations for method
GO> `setValue:' /usr/include/swarm/gui.h:473: warning: using
GO> `-setValue:(const char *)v'

Objective C methods are orthogonal to classes, however they are not
polymorphic, i.e. the method names but not the types identify a method.

One thing you could do is have have a +create:setDouble: method like
below, and use it in the DOUBLE macro.

+ create: aZone setDouble: (double)theValue
{
   Double *obj = [self create: aZone];
   obj->value = theValue;
   return obj;
}


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