| ▲ | compsciphd 13 hours ago | |||||||
I could imagine code that did something like this for primatives
yes, you now have to deal in pointers, but that's not too ugly, and everything is stored in secretStash so can iterate over all the types it supports and thrash them to make them unusable, even without the gc running. | ||||||||
| ▲ | mbreese 11 hours ago | parent | next [-] | |||||||
I used to see this is bash scripts all the time. It’s somewhat gone out of favor (along with using long bash scripts). If you had to prompt a user for a password, you’d read it in, use it, then thrash the value.
It’s not pretty, but a similar concept. (I also don't know how helpful it actually is, but that's another question...) | ||||||||
| ▲ | voodooEntity 13 hours ago | parent | prev [-] | |||||||
Thats even better than what i had in mind but agree also a good way to just scrumble stuff unusable ++ | ||||||||
| ||||||||