swarm-support
[Top][All Lists]
Advanced

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

Re: Redeclared variable error


From: Wojtek Kopczuk
Subject: Re: Redeclared variable error
Date: Fri, 31 Jan 1997 11:54:28 -0500

Hi,
you didn't redeclare variable - first one is a local instance
variable of DensitySpace object, second one is global variable,
they are defined in different contexts
Wojtek


CUVELIER Bruno - wrote:
> I've redeclared a variable by mistake
> 
> DensitySpace.h
> --------------
> @interface DensitySpace : Discrete2d {
>   Density maxDensity;
>   int neighborhood;
> }
> 
> DensitySpace.m
> --------------
> Density maxDensity= 9;
> 
> @implementation DensitySpace
> [...]
> @end
> 
> The compiler detect any error ! During the execution (DensitySpace == 0) !
> 
> Why the error is not detect ?
> 
> --
> ------------------------------------------
> Bruno CUVELIER
> email: address@hidden
>        address@hidden
> http://www.univ-littoral.fr/~cuvelier
> 
> Universite du Littoral
> Laboratore d'Informatique du Littoral (LIL)
> BP 719
> 62228 Calais Cedex
> France
> ------------------------------------------

-- 
-----------------------------------------------------------
Wojtek Kopczuk              "There is no third way between
address@hidden       right and wrong"
IGS: wojtek                  Friedrich von Hayek 
http://www.econ.lsa.umich.edu/~wojtek
-----------------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]