[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Circular references
From: |
Parviez Hosseini |
Subject: |
Circular references |
Date: |
Fri, 26 Jun 1998 16:08:58 -0700 (PDT) |
If I understand the problem right, I think I have a solution.
In the .h files include/import only C headers, and SWARM distribution
stuff (i.e. <space.h>). For things like ModelSwarm, etc. put them in the
.m files. Then there are no circles. The only problem with this might be
if you're using things like id <ModelSwarm> or ModelSwarm* declaration
(depending on where you are in version history).
-Parviez
Example
/* Agent.h file */
#include <stdio.h>
#import <objectbase.h>
@interface .......
@end
/*Agent.m */
#import "Agent.h"
#import "ModelSwarm.h"
....
/* ModelSwarm.m */
#import "ModelSwarm.h"
#import "Agent.h"
==================================
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.
==================================