digitalmars.D.bugs - [Bug 78] New: spaces in module identifier accepted
- d-bugmail puremagic.com (21/21) Mar 31 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=78
- d-bugmail puremagic.com (10/10) Mar 31 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=78
- d-bugmail puremagic.com (13/13) Mar 31 2006 http://d.puremagic.com/bugzilla/show_bug.cgi?id=78
- Thomas Kuehne (11/17) Apr 01 2006 -----BEGIN PGP SIGNED MESSAGE-----
http://d.puremagic.com/bugzilla/show_bug.cgi?id=78
Summary: spaces in module identifier accepted
Product: D
Version: 0.150
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: accepts-invalid
Severity: minor
Priority: P3
Component: DMD
AssignedTo: bugzilla digitalmars.com
ReportedBy: thomas-dloop kuehne.cn
module a. b .c . d;
test cases:
http://dstress.kuehne.cn/nocompile/m/module_05_A.d
http://dstress.kuehne.cn/nocompile/m/module_05_B.d
http://dstress.kuehne.cn/nocompile/m/module_05_C.d
http://dstress.kuehne.cn/nocompile/m/module_05_D.d
http://dstress.kuehne.cn/nocompile/m/module_05_E.d
--
Mar 31 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=78
smjg iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |smjg iname.com
IMO A, B and C should all compile, since the spaces are between tokens, and as
such the lexer is supposed to ignore them. OTOH D is indeed invalid. E throws
a 404 error.
--
Mar 31 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=78
bugzilla digitalmars.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
The syntax is:
'module' Identifier { '.' Identifier } ';'
In other words, whitespace is allowed between the tokens, and not inside the
tokens. Not a bug. A,B,C compile as expected, D fails to compile as expected, E
cannot be downloaded.
--
Mar 31 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail puremagic.com schrieb am 2006-04-01:
http://d.puremagic.com/bugzilla/show_bug.cgi?id=78
The syntax is:
'module' Identifier { '.' Identifier } ';'
In other words, whitespace is allowed between the tokens, and not inside the
tokens. Not a bug. A,B,C compile as expected, D fails to compile as expected, E
cannot be downloaded.
Moved A,B and C to compile.
Thomas
(Note to self: too frequent language switching has side effects)
-----BEGIN PGP SIGNATURE-----
iD8DBQFELu5s3w+/yD4P9tIRAm9/AJ9qlWVxqQ6GmUaQhNd85JCsOoFCuQCffw+Y
SKOjQbmziw5kH492zXWKbsc=
=pUaK
-----END PGP SIGNATURE-----
Apr 01 2006









d-bugmail puremagic.com 