[Issue 11041] Some function in core.stdc should be CTFEable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 15 01:41:29 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11041
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #1 from bearophile_hugs at eml.cc 2013-09-15 01:41:28 PDT ---
(In reply to comment #0)
> It prevents some functions in Phobos from being CTFEable.
> For instance, core.stdc.string.memcpy prevents std.algorithm.move from being
> CTFEable (I think it should be).
>
> A workaround for it is that we implement functions in druntime in D by
> ourselves in each module
> but it is better to provide their CTFEable implementations in druntime.
One possible solution is to never use core.stdc.string.memcpy directly in
Phobos, and define a D wrapper that contains __ctfe and calls
core.stdc.string.memcpy if that's false.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list