--- Begin Message ---
Subject: |
Returned mail: Can't create output: Undefined error: 0 |
Date: |
Thu, 7 May 98 10:59:31 -0400 |
This is a MIME-encapsulated message
--KAA22488.894553171/arl-img-7.compuserve.com
The original message was received at Thu, 7 May 1998 10:57:47 -0400 (EDT)
from [207.6.206.2] (may be forged)
----- The following addresses had permanent fatal errors -----
<address@hidden>
----- Transcript of session follows -----
550 <address@hidden>... Can't create output: Undefined error: 0
--KAA22488.894553171/arl-img-7.compuserve.com
Content-Type: message/delivery-status
Reporting-MTA: dns; arl-img-7.compuserve.com
Received-From-MTA: DNS; [207.6.206.2]
Arrival-Date: Thu, 7 May 1998 10:57:47 -0400 (EDT)
Final-Recipient: RFC822; address@hidden
Action: failed
Status: 5.3.0
Last-Attempt-Date: Thu, 7 May 1998 10:59:31 -0400 (EDT)
--KAA22488.894553171/arl-img-7.compuserve.com
Content-Type: message/rfc822
Return-Path: <address@hidden>
Received: from nf.acres.com ([207.6.206.2] (may be forged))
by arl-img-7.compuserve.com (8.8.6/8.8.6/2.10) with SMTP id KAA22390
for <address@hidden>; Thu, 7 May 1998 10:57:47 -0400 (EDT)
Received: by nf.acres.com with VINES-ISMTP; Thu, 7 May 98 10:57:54 -0400
Date: Thu, 7 May 98 6:14:40 -0400
Message-ID: <address@hidden>
X-Priority: 3 (Normal)
To: <address@hidden>
From: "Rob Kewley" <address@hidden>
Reply-To: <address@hidden>
Subject: Re: Error Message
X-Incognito-SN: 1152
X-Incognito-Version: 4.10.1
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Gek Woo Tan wrote:
>
> Hi,
>
> Could someone help me? I created a list of objects and I'm trying to print
> out the contents of my list:
>
> id index;
> Agent *aAgent;
>
> index = [Tier1List begin: [self getZone]];
> while (aAgent = [index next]) {
> blah ... blah ...
> }
>
> I get the compilation error:
>
> ModelSwarm.m:138: warning: suggest parentheses around assignment used as
> truth value
> (i.e. the "while (aAgent = [index next])" line)
>
> I don't understand the error message. I don't know if there's some
> mistake with the syntax.
>
The error message is just a warning, and on any system I have used so
far, it has no effect on execution. If you want to get rid of the
annoying message, simply put another layer of parenthesis in your code
as follows:
while ((aAgent = [index next])) {
Rob Kewley
==================================
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.
==================================
--KAA22488.894553171/arl-img-7.compuserve.com--
==================================
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.
==================================
--- End Message ---