www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 456] New: DMD accepts keywords in module names if no ModuleDeclaration is used

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=456

           Summary: DMD accepts keywords in module names if no
                    ModuleDeclaration is used
           Product: D
           Version: 0.170
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: thomas-dloop kuehne.cn


sample:

dmd while.d


-- 
Oct 24 2006
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=456





------- Comment #1 from fvbommel wxs.nl  2006-10-25 04:02 -------
Note this is used in dmd/src/phobos/internal (cast.d, invariant.d, switch.d) to
implement certain compiler support functions.
Presumably these are used by hardcoding the mangled names into the compiler
since no D module can import them.
So if this is changed, those modules would have to be renamed and those names
would have to be adjusted.


-- 
Oct 25 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=456


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Comment #2 from bugzilla digitalmars.com  2006-10-25 17:07 -------
I think that 'fixing' this is probably more trouble than its worth. While such
modules do work for internal modules that have no D interface, they won't work
anyway for regular D modules, and the user will find that out pretty quick.


-- 
Oct 25 2006