Re: symbol resolution (was:EuCOM : Attn Matt : String Return Value)
- Posted by Pete Lomax <petelomax at blu?yonder.co.uk> Oct 11, 2007
- 854 views
Matt Lewis wrote: > > What if main.e had also included libAmisc.e? > > }}} <eucode> > main.e > global Z > include libAmisc.e > if Z then > include libA.e > global Z > include libAmisc.e > if Z then > </eucode> {{{ > Now how would the interpreter handle this? Well, yes, that would break it for sure, ... but ... that code has been broken since the year dot (without any warning) so I struggle to accept that example as relevant. > It has to be an error <snip> > I bet that I'll find a lot of this in various libraries of mine. I am quite worried that absolute torrents of the warning you propose will occur in legacy code. On a lesser note, it seems to me that while you could give said warning in the libA standalone case, it would be nigh on impossible for the code snippet above to actually produce a compile error? Your post gave me quite a pause for thought, I may come back to some of the other points raised later. Regards, Pete