Circular dependency

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Circular dependency

danilafoxpro
Provided files a.luan and b.luan, loading either with luan a.luan will produce the following error:
module 'file:b.luan' not found
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
	file:a.luan line 5
	file:b.luan line 3
Reply | Threaded
Open this post in threaded view
|

Re: Circular dependency

fschmidt
Administrator
What should happen?  I think this is okay.

To avoid the circular dependency, do something like this:

b.luan
Reply | Threaded
Open this post in threaded view
|

Re: Circular dependency

danilafoxpro
Thank you. Just wanted to see if this behavior is intended. Some languages avoid or solve this problem somehow.