[Issue 4541] Intrinsic functions do not have pointers
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 12 07:16:22 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=4541
Mathias Lang <mathias.lang at sociomantic.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Component|phobos |dmd
Resolution|FIXED |---
--- Comment #9 from Mathias Lang <mathias.lang at sociomantic.com> ---
I strongly disagree with closing this bug.
> Even though using core.math results in link failure, I do not think this is a problem since that is the runtime library and who uses it should know that the functions declared there are intrinsics.
Relying on user knowing of internal details is not a solution. Moreover, this
doesn't take into account generic code. If one write a template that accept a
static function via a template this argument, do you really expect this person
to handle the case of someone passing an intrinsic explicitly ?
Intrinsics shouldn't differ from regular functions.
> Anyway, this is not a phobos bug anymore and I don't think it is a druntime one either. Closing as fixed.
The correct course of action would be to properly tag the bug as being within
DMD.
--
More information about the Digitalmars-d-bugs
mailing list