www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2168] New: cast extern enhancement?

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

           Summary: cast extern enhancement?
           Product: D
           Version: 1.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: davidl 126.com


I'm not sure where this nntp://news.digitalmars.com/digitalmars.D.bugs:2556
links.

But seems this test case gets lost?

http://dstress.kuehne.cn/dstress/trunk/compile/extern_07.d

module dstress.compile.extern_07;

extern(C) void *wglGetProcAddress(char*);
extern(C) int function() glFunctionFoo;

int main(){
        glFunctionFoo = cast(extern(C) int function())
wglGetProcAddress("glFunctionFoo");
        return 0;
}


-- 
Jun 24 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2168


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com





What exactly is the bug you're reporting?

- that that DStress test case seems to have been lost?  If so, the product is
wrongly set.

- that the code behaves incorrectly?  If so, please be specific.


-- 
Nov 24 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2168


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug yahoo.com.au
           Severity|normal                      |enhancement



This was an enhancement request, to allow extern(C) inside cast().

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