in reply to redefining Internals::SvREADONLY
However, some developers circumvented that ...
If the developers are internal...the threat of the sack would probably do it.
If they are external, why do you feel the need to dictate this to them? If they screw themselves up, does that affect you?
This isn't sarcasm. Most every occasion when I've seen programmers worrying that other programmers might defile the sacrosanctity of "their" data, there has been no good reason behind it. There's a quote I can't find about "Perl doesn't stand guard with a shotgun" that is probably applicable.
Update: Found the quote:
Perl doesn't have an infatuation with enforced privacy. It would prefer that you stayed out of its living room because you weren't invited, not because it has a shotgun -- Larry Wall
Programming is about getting the job done. If other programmers feel the need to violate your rules in order to get their job done, it might be because your rules need changing?
If the read-onlyness of this data is absolutely paramount, then there are ways to create read-only memory segments where the read-onlyness is enforced by the hardware. That would generally require some considerable effort to do from Perl, but if it is worth that effort, it can also be backed by OS-level permissions(*) making it extremely hard to circumvent.
(*)Assuming that you can control the permissions used by the other developers?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: redefining Internals::SvREADONLY
by ChiefAl (Initiate) on May 05, 2010 at 23:17 UTC | |
by BrowserUk (Patriarch) on May 05, 2010 at 23:52 UTC | |
by ww (Archbishop) on May 05, 2010 at 23:38 UTC | |
by ikegami (Patriarch) on May 06, 2010 at 00:26 UTC |