[EMAIL PROTECTED] (Jan Erik Moström) wrote:
>-- module A ---
>
>use B;
>use C;
>
>-- module B ---
>
>use C;
>
>-- module C ---
>
>--
>
>If I now do a syntax check I get error messages that the functions of C are
>redefined ... I assume this is because C is first checked/compiled in the use
>statement of module B and then directly from A.
>
>I assume there is a way to prevent these messages but how?


I assume these modules have "package" statements that you haven't shown
here.  You should put the package declarations before any "use"
statements.  That way when "use" imports symbols into the current
namespace (package), it'll do it into the correct one.  Right now it's
probably importing into ::main.


  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  [EMAIL PROTECTED]                            The Math Forum

Reply via email to