Obtain pointer from static array literal

Some Guy someguy at mailinator.com
Sat Oct 9 14:42:28 UTC 2021


On Saturday, 9 October 2021 at 13:11:29 UTC, Imperatorn wrote:
> Look in core.memory 
> (https://github.com/dlang/druntime/blob/master/src/core/memory.d)

Does this technique work for all D runtime (or std) functions? 
Can we just define what the function is and then the compiler 
uses our definition instead of the definition inside the runtime?

I would've thought that our definition is just another overload 
but I guess `extern(C)` prevents that.


More information about the Digitalmars-d-learn mailing list