Jack Kelly <[EMAIL PROTECTED]> writes:
> struct room{
> ...
> struct player * players;
> ...
> };
>
> struct player{
> ...
> struct room * room;
> ...
> };
Extreme programming (or maybe it was some other "agile" thingy)
suggests doing the simplest possible approach that could conceivably
work. What about:
data Room = ..
data Player = ..
locations :: [(Player,Room)]
?
-k
--
If I haven't seen further, it is by standing in the footprints of giants
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe