www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9081] New: Modules shouldn't have a type

reply d-bugmail puremagic.com writes:
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



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: -------
Nov 26 2012
parent d-bugmail puremagic.com writes:
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



---
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: -------
Nov 26 2012