November 20, 2002 Bug on namespace??? | ||||
---|---|---|---|---|
| ||||
Hi Walter, If class A has already been defined in global namespace, If we define class A in any other namespace, N, dmc 8.31.1 generates error. However, if class A in namespace N is defined before, dmc compiles. For example, class A { }; namespace N { class A { }; } The above code generates errors but the following does not. namespace N { class A { }; } class A { }; Thank you for your excellent job, Steve |
November 20, 2002 Re: Bug on namespace??? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve | I need to redo the namespace support. -Walter "Steve" <Steve_member@pathlink.com> wrote in message news:arf761$2gll$1@digitaldaemon.com... > Hi Walter, > > If class A has already been defined in global namespace, If we define class A in > any other namespace, N, dmc 8.31.1 generates error. However, if class A in > namespace N is defined before, dmc compiles. > > For example, > > class A > { > }; > > namespace N > { > class A > { > }; > } > > The above code generates errors but the following does not. > namespace N > { > class A > { > }; > } > > class A > { > }; > > Thank you for your excellent job, > Steve > > |
Copyright © 1999-2021 by the D Language Foundation