3 ms·
You can already do this by using a magic setter that blows out an exception whenever its called for whichever variables you denote. A little hacky, but it does
by SDGT 13y ago
You can already do this by using a magic setter that blows out an exception whenever its called for whichever variables you denote. A little hacky, but it does indeed prevent setting of certain vars in your classes.