swarm-support
[Top][All Lists]
Advanced

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

Re: Compiler Warning


From: Marcus G. Daniels
Subject: Re: Compiler Warning
Date: 24 Nov 1999 12:04:24 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "JD" == Julie Dugdale <address@hidden> writes:

JD> why does the following line: if ([communicatingWith getLoc]==End)

JD> create the following compiler warning: healthWorker.m:303:
JD> warning: comparison of distinct pointer types lacks a cast

One is an "id" and the other is an "id <Symbol>", adding "(id)" to both
with prevent the warning. 

JD> this also seems to mean that the comparison doesn't work at
JD> runtime... what am I doing wrong?

Unlikely -- there shouldn't be a code generation problem. 
You can use something like below to have the value of `getLoc' reported.

   id loc = [communicatingWith getLoc];
 
   xprint (loc);
   if (loc == (id) End)
     {
     }


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