digitalmars.D.bugs - weird compiler error
- Regan Heath (19/19) Jun 30 2004 ok, this was just weird, turns out if I have a file called object.d in t...
- Walter (4/7) Jul 19 2004 It's best to consider the module name 'object' as reserved, since the
- Regan Heath (7/15) Jul 20 2004 I figured that was the case. Can we get some sort of error so this does
ok, this was just weird, turns out if I have a file called object.d in the same directory as another .d file which I am trying to compile I get a weird error message: D:\D\src\build\temp\a>dmd a.d d:\D\dmd\bin\..\src\phobos\std\c\stdio.d(164): identifier 'size_t' is not defined D:\D\src\build\temp\a>dir Volume in drive D is BLACKHOLE Volume Serial Number is 481E-ADF3 Directory of D:\D\src\build\temp\a 07/01/2004 12:56p <DIR> . 07/01/2004 12:56p <DIR> .. 07/01/2004 12:56p 18 a.d 07/01/2004 12:43p 135 object.d 2 File(s) 153 bytes 2 Dir(s) 1,062,141,952 bytes free Regan. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jun 30 2004
"Regan Heath" <regan netwin.co.nz> wrote in message news:opsafo2dqr5a2sq9 digitalmars.com...ok, this was just weird, turns out if I have a file called object.d in the same directory as another .d file which I am trying to compile I get a weird error message:It's best to consider the module name 'object' as reserved, since the compiler has a lot of exact expectations for its contents!
Jul 19 2004
On Mon, 19 Jul 2004 22:01:29 -0700, Walter <newshound digitalmars.com> wrote:"Regan Heath" <regan netwin.co.nz> wrote in message news:opsafo2dqr5a2sq9 digitalmars.com...I figured that was the case. Can we get some sort of error so this does not happen, i.e. "module name 'object' reserved". Regan. -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ok, this was just weird, turns out if I have a file called object.d in the same directory as another .d file which I am trying to compile I get a weird error message:It's best to consider the module name 'object' as reserved, since the compiler has a lot of exact expectations for its contents!
Jul 20 2004