Namespace vote
- Posted by Sabal.Mike at notations.com Jun 26, 2001
- 403 views
Just my 2.41 yen: I think the format include myfile.e as lib1 include herfile.e include hisfile.e as lib1 along with conditional includes would make the most sense. Multiple = files sharing the same namespace is allowable as long as the two files do = not have any symbol conflicts. Sharing a namespace, especially a blank = namespace, seems the easiest way to avoid breaking code. And it's an = elegant solution. If both files contain function abs(), then the following = usage should apply (same as with variables & constants): x =3D abs(y) -- uses the function in herfile.e x =3D :abs(y) -- blank namespace also uses herfile.e x =3D lib1:abs(y) -- uses the function in myfile.e x =3D bil9:abs(y) -- fails because there is no such namespace. function abs(object y) -- fails because the blank namespace is already = taken -- with that function Anyway, just my thoughts for the day.