Re: warning from Euphoria
- Posted by Jeremy Cowgar Jul 03, 2008
- 701 views
judith evans said...
Warning ( resolution_warning ): Irregular.ew:24 - identifier 'allocate' in 'machine.e' is not included
That is a bit of a confusing message. I wonder if we can come up with a better message... I was thinking:
Warning ( resolution_warning ): Irregular.ew:24 - identifier 'allocate' in 'machine.e' is not directly included
but that's not totally true. For instance, you could have:
-- lib.e global function abc() ... -- mycommon.e include lib.e -- myprog.ex include mycommon.e
and abc() will resolve correctly. What you cannot have is brother/sister includes...
-- mylib.e global function abc() ... -- mycommon.e include mylib.e -- other.e abc() -- myprog.ex include mycommon.e include other.e
In the above situation, other.e use to see abc() because include mycommon.e included it, but this is pretty bad practice. Rearrange your include files and all sorts of things begin to break, not to mention, you look at other.e and say, now, where does abc() come from? So, this very problem is what that warning is talking about.
Jeremy