Comment #0 by bearophile_hugs — 2011-09-19T05:08:48Z
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?
Comment #1 by yebblies — 2011-09-19T07:23:21Z
*** This issue has been marked as a duplicate of issue 4541 ***