No that is not allowed. make_static_string() is an internal API to create string with static storage (e.g. compile time constant strings). If you want to pass this string to pike code you need to use make_shared_static_string() which creates a "normal" Pike string.
What use-case do you have?
Arne
On Mon, 15 Mar 2021, Stephen R. van den Berg wrote:
Is it allowed/supported to put a string created with make_static_string() into an svalue and then give it to say the write() method of an arbitrary Stdio object? -- Stephen.