Bug 9302 – Document extern properly

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-12T08:29:00Z
Last change time
2013-03-05T07:02:45Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-01-12T08:29:09Z
extern is used both as a storage class and as a linkage attribute. Although both are documented they should be linked to one another and example code should be provided to avoid any confusion between the two.
Comment #1 by andrej.mitrovich — 2013-01-12T08:30:48Z
Comment #2 by github-bugzilla — 2013-01-12T08:49:53Z
Commits pushed to master at https://github.com/D-Programming-Language/d-programming-language.org https://github.com/D-Programming-Language/d-programming-language.org/commit/cf59d99871e99ab61e11633f04cad9ac68a5600b Fixes Issue 9302 - Extern is used both as a storage class and as a linkage attribute. https://github.com/D-Programming-Language/d-programming-language.org/commit/eee1cd8143422e9b64a12e1456b22eba2ca9290d Merge pull request #237 from AndrejMitrovic/Fix9302 Issue 9302 - Extern is used both as a storage class and as a linkage attribute
Comment #3 by bruno.do.medeiros+deebugz — 2013-03-05T06:57:25Z
There is still an error in the docs in the part that says: " D conventions are: extern (D): or: extern: " The last "or: extern:" should be removed because that syntax is interpreted as the storage class, not linkage ?
Comment #4 by andrej.mitrovich — 2013-03-05T07:02:45Z
(In reply to comment #3) > There is still an error in the docs in the part that says: > " > D conventions are: > extern (D): > or: > extern: > " > > The last "or: extern:" should be removed because that syntax is interpreted as > the storage class, not linkage ? Yes exactly, thanks. https://github.com/D-Programming-Language/d-programming-language.org/pull/294