I can crash program(core.exception.InvalidMemoryOperationError)by using __FUNCTION__ in a class ctor

Neia Neutuladh neia at ikeran.org
Fri Jan 18 19:08:02 UTC 2019


On Fri, 18 Jan 2019 13:47:15 -0500, Steven Schveighoffer wrote:
> I'm not speaking about rules or restrictions, I'm talking about
> stability. tempCString is pretty stable and likely won't change in any
> way except implementation details.

It's low risk but entirely unsupported. Using it in your own private code 
is okay; you can choose when to switch compiler versions and so forth, and 
if it causes any issues, you can change it right away. Using it in code 
intended for other people to compile is not a great idea.


More information about the Digitalmars-d mailing list