I'm using several packages in a notebook. In each packages there is functions defined with dummy variables. When I load the several packages in my session, i've got a warning message:
BeginPackage["square`"];
square[x_] := x^2;
EndPackage[]
BeginPackage["cube`"];
cube[x_] := x^3;
EndPackage[]
x::shdw: Symbol x appears in multiple contexts {cube
,square
}; definitions in context cube` may shadow or be shadowed by other definitions. >>
I don't really understand since the variable x
should be dummy ?
Begin["`Private`"] ... End[];
statements. Symbols created there are not exported outside since End does not modify$ContextPath
. $\endgroup$Begin["Private``"]
instead ofBegin["``Private``"]
. Thank you @Kuba $\endgroup$