[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Circular ".h" references
From: |
address@hidden |
Subject: |
Re: Circular ".h" references |
Date: |
Mon, 6 Nov 2000 09:58:35 +0100 |
> To avoid problems with circular reference you can hide some "import"
in the .m file. For instance: ObserverSwarm import ModelSwarm and
ModelSwarm have to import ObserverSwarm. you can put:
i) in ObserverSwarm.h the import of ModelSwarm.h
ii) in ModelSwarm.m the import of ObserverSwarm.h
The solution is not very smart but it works.
Cheers
Gigi
> > From: "Doug Donalson" <address@hidden>
> >
> > Has anyone ever figured out how to get around the circular .h
references?
>
> Yes, use Java.....;-)
>
> -Miles
>
>
> Miles T. Parker
> Software Engineer
> The Brookings Institution 1775 Mass. Ave. NW Washington, DC 20036
> http://www.brook.edu/es/dynamics/models/ascape
> mailto:address@hidden voice 202.797.6136 fax 202.797.6319
>
> >
> > For example ObserverSwarm.h references ModelSwarm.h which
references AnAgent.h
> > which references ModelSwarm.h which causes an error.
> >
> > Cheers,
> >
> > D4
> >
> >
> >
*********************************************************************
> > * Dr. Doug Donalson Office: (805) 893-2962
> > * Ecology, Evolution, Home: (805) 961-4447
> > * and Marine Biology email address@hidden
> > * UC Santa Barbara
> > * Santa Barbara Ca. 93106
> >
*********************************************************************
> > *
> > * The most exciting phrase to hear in science, the one that
> > * heralds new discoveries, is not "EUREKA" (I have found it) but
> > * "That's funny ...?"
> > *
> > * Isaac Asimov
> > *
> >
*********************************************************************
> >
> >
> >
>
>
> ==================================
> 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.