Re: Problems with modules

Jaap Vermeulen (jaap@sequent.com)
Tue, 3 May 94 19:57:33 GMT

In <1994Apr25.155740.11708@news.cs.indiana.edu> "Steven Miale" <smiale@cs.indiana.edu> writes:

>The problem is that both modules have information needed by the
>other module. In this case, the user's module will look something
>like this:
>
> Rules = [('rec.arts.anime', SimpleGrep, AnimeRules)]
>
>The library has to have 'Rules' defined in order to compile. But
>Rules needs a definition of 'SimpleGrep' (from the library) in
>order to compile.

Can't you break it up in three files (with SimpleGrep in the third
file)? Or use a dummy value in one of the files that gets replaced by
the actual value once the next module is imported?

-Jaap-

-- 
Jaap Vermeulen					+--------------------------+
						| Sequent Computer Systems |
	Internet : jaap@sequent.com		| Beaverton, Oregon	   |
	Uucp	 : ...uunet!sequent!jaap	+--------------------------+