Bug 78 – spaces in module identifier accepted

Status
RESOLVED
Resolution
INVALID
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-03-31T02:56:00Z
Last change time
2014-02-15T02:09:17Z
Keywords
accepts-invalid
Assigned to
bugzilla
Creator
thomas-dloop

Comments

Comment #0 by thomas-dloop — 2006-03-31T02:56:26Z
Comment #1 by smjg — 2006-03-31T04:49:25Z
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.
Comment #2 by bugzilla — 2006-03-31T19:56:09Z
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.
Comment #3 by thomas-dloop — 2006-04-01T14:30:25Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] 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-----