News for hackers. Stuff that matters.
Re:C++ Patterns: The Badge by jandrewrogers on Tuesday June 11, 2019 @10:30PM (#20161249)
Which popular programming languages provide proper ACLs (or equivalent functionality) for class members?
Re:C++ Patterns: The Badge by inetknght on Tuesday June 11, 2019 @11:46PM (#20161621)
I'm aware of C++ and Xojo for sure.
Re:C++ Patterns: The Badge by desdiv on Wednesday June 12, 2019 @01:16AM (#20161957)
Is it possible to have a proper compile time ACL for C++?

Arguably the Badge pattern as presented in the article is just an honor system that provides zero security, since it's trivial to forge a fake Badge: https://repl.it/repls/BountifulQuerulousCron

Re:C++ Patterns: The Badge by vnorilo on Wednesday June 12, 2019 @06:04AM (#20163141)
It's less trivial if you make the copy/move constructors private.

https://repl.it/repls/HatefulMadeupMicrostation

Of course, type systems are orthogonal to any real security, at least in most languages, and certainly all languages with no-holds-barred interface to machine code.