[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Circular ".h" references
From: |
Gulyas Laszlo |
Subject: |
Re: Circular ".h" references |
Date: |
Fri, 3 Nov 2000 12:19:35 +0100 (MET) |
Let me tell you the simple solution the MAML compiler (xmc) uses. [*]
ModelSwarm.h imports AnAgent.h
AnAgent.h imports nothing (i.e. definitely NOT ModelSwarm.h)
AnAgent.m imports ModelSwarm.h
Thus there is no circle in the import chain, but still everybody can see
everything what is needed.
Regards,
Gulya
[*] MAML stands for the Multi-Agent Modeling Language, currently a
macro-language for Objective-C Swarm. (http://www.syslab.ceu.hu/maml/)
On Thu, 2 Nov 2000, Doug Donalson wrote:
> Has anyone ever figured out how to get around the circular .h references?
>
> 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
> *
> *********************************************************************
>
>
>
--
Laszlo Gulyas address@hidden
AI Laboratory http://www.sztaki.hu/~gulyas/
Computer and Automation Research Inst. H-1111, Budapest, Kende u. 13-17.
Hungarian Academy of Sciences * 36 1 209-6194
==================================
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.