
29 Mar
2007
29 Mar
'07
3:31 p.m.
On Thu, Mar 29, 2007 at 12:04:16PM -0700, Bryan O'Sullivan wrote:
Ian Lynagh wrote:
You shouldn't get ambiguity problems if you're importing the same thing from multiple modules, only if you import different things with the same name.
Is this a required behaviour?
Yes.
Section 5.5.2 of the 98 report seems to say so, but it's not exactly given in ironclad terms.
I think the second bullet point (on "The reference to d") makes it clear.
In other words, is it required for the compiler to provide enough information when compiling a module that when importing the module later, it can see that a name is being re-exported?
Yup. Thanks Ian