News for hackers. Stuff that matters.
Re:Rust – How do I create a global, mutable singleton? (2015) by richard_todd on Wednesday July 22, 2020 @12:26PM (#23918684)
Yes, or on a more primitive level how traditional UNIX lets a process drop setuid-root permissions once you've done what you need to do with them.

In some managed languages, you can define classes with constant members, but obviously they let you write to them during the constructor for the objects. That's the kind of restricted-scope global-state setup phase I am after in an advanced systems programming language. It would be an interesting experiment, anyway.

There are no comments on this comment yet.