[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: probably trivial problem
From: |
Benedikt Stefansson |
Subject: |
Re: probably trivial problem |
Date: |
Thu, 24 Apr 1997 18:09:41 -0700 |
Peter Deadman wrote:
> I create a group of agents in modelSwarm and put them
> in a list called agentList. When I compile the program, I get this
> warning message:
>
> CprModelSwarm.m: In function `_i_CprModelSwarm__buildObjects':
> CprModelSwarm.m:110: warning: local declaration of `agentList' hides
> instance variable
> CprModelSwarm.m:130: warning: local declaration of `agentList' hides
> instance variable
Check CprModelSwarm.h (the header file for your ModelSwarm). The
compiler is complaining about the fact that you are both declaring
agentList as a local variable in the buildObjects method, and as an
instance variable in the header file (hence "hides instance variable").
Hope this clears up the problem.
Regards,
-Benedikt
--
----------------
Benedikt Stefansson address@hidden
Center for Computable Economics Tel. (310) 825-1777
Department of Economics, UCLA Fax. (310) 825-9528
Los Angeles, CA 90095-1477 http://cce.sscnet.ucla.edu
==================================
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.
==================================