swarm-support
[Top][All Lists]
Advanced

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

Re: Compiler Warning


From: Julie Dugdale
Subject: Re: Compiler Warning
Date: Thu, 02 Dec 1999 09:56:46 +0100

Hi,

Just to say thanks Marcus. Sorry for the late reply, but I've been away.

Cheers again.
Julie

>>>>>> "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.
>
>
>

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