November 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9081

           Summary: Modules shouldn't have a type
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: clugdbug@yahoo.com.au


--- Comment #0 from Don <clugdbug@yahoo.com.au> 2012-11-26 06:34:41 PST ---
Currently packages and modules have type 'void', which makes no sense. They should have type _error. The following code should compile.
---
import std.stdio;

static assert( !is(typeof(std)) );
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
November 26, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9081


Maxim Fomin <maxim@maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim@maxim-fomin.ru


--- Comment #1 from Maxim Fomin <maxim@maxim-fomin.ru> 2012-11-26 10:50:32 PST ---
Raw templates also have void type which may be a source of confusion. I think dmd should introduce special types for modules and templates or not define a type for them at all.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------