Thread overview
[Issue 4541] New: Intrinsic functions do not have pointers
Jul 31, 2010
Burton Radons
Sep 20, 2010
Don
Sep 19, 2011
yebblies
Feb 15, 2013
Andrej Mitrovic
July 31, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4541

           Summary: Intrinsic functions do not have pointers
           Product: D
           Version: D1
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: burton-radons@shaw.ca


--- Comment #0 from Burton Radons <burton-radons@shaw.ca> 2010-07-31 09:38:19 PDT ---
This code fails to link:

    import std.math;
    void main() {
        real function(real) c = &sin;
    }

With the error message:

    D:\Source>dmd-1 test.d test.exe
    OPTLINK (R) for Win32  Release 8.00.2
    Copyright (C) Digital Mars 1989-2009  All rights reserved.
    http://www.digitalmars.com/ctg/optlink.html
    test.obj(test)
     Error 42: Symbol Undefined _D3std4math3sinFeZe
    --- errorlevel 1

Because std.math.sin is intrinsic. This should either be detected at compile time or (better yet) a function should be added to Phobos that gives this function a body.

This affects treating large sets of functions homogenously, such as exporting to a scripting language.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 20, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4541


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |necroment@gmail.com


--- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-09-20 08:44:31 PDT ---
*** Issue 4696 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 19, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4541


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs@eml.cc


--- Comment #2 from yebblies <yebblies@gmail.com> 2011-09-20 00:23:21 EST ---
*** Issue 6692 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 15, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4541


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com
            Version|D1                          |D1 & D2


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-15 14:49:10 PST ---
Also a D2 bug.

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