www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11670] New: RTInfo is not respected for primitive types

https://d.puremagic.com/issues/show_bug.cgi?id=11670

           Summary: RTInfo is not respected for primitive types
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: samukha voliacable.com


--- Comment #0 from Max Samukha <samukha voliacable.com> 2013-12-03 11:00:26
PST ---
in the object module:

template RTInfo(T)
{
    enum RTInfo = is(T == int) ? cast(immutable(void)*)0xDEADBEEF : null;
}


-----

void main()
{
    assert(typeid(int).rtInfo == cast(immutable(void)*)0xDEADBEEF);
}

The assert should pass.

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