Thread overview | ||||||
---|---|---|---|---|---|---|
|
March 31, 2006 [Bug 78] New: spaces in module identifier accepted | ||||
---|---|---|---|---|
| ||||
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 -- |
March 31, 2006 [Bug 78] spaces in module identifier accepted | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/bugzilla/show_bug.cgi?id=78 smjg@iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg@iname.com ------- Comment #1 from smjg@iname.com 2006-03-31 04:49 ------- 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. -- |
April 01, 2006 [Bug 78] spaces in module identifier accepted | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/bugzilla/show_bug.cgi?id=78 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #2 from bugzilla@digitalmars.com 2006-03-31 19:56 ------- 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. -- |
April 01, 2006 Re: [Bug 78] spaces in module identifier accepted | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | 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)
|
Copyright © 1999-2021 by the D Language Foundation