September 19, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6692

           Summary: std.math.sin function pointer
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2011-09-19 05:08:48 PDT ---
In some situations I'd like the std.math.sin and std.math.cos functions to be more flexible and more *uniform* with all other user-written functions:


import std.math;
void main() {
    auto a = [&sin, &cos];


Intrinsics have some advantages, but a uniform way to manage functions (especially functions as common as sin/cos) is handy and allows some usages that are not possible now (workaround: to do it I use small wrapper functions for sin and cos).

Is it possible to have sin and cos functions usable like the other functions?

-- 
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=6692


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |yebblies@gmail.com
         Resolution|                            |DUPLICATE


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

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