in reply to Re: Modification of a read-only value attempted
in thread Modification of a read-only value attempted
You will notice when you try to write to the constant, which I suppose is the point of it :) That said, I do prefer Readonly as well because it allows for completely normal-looking "non-variables". Having to remember to dereference anything that's supposed to be a constant doesn't make sense except as an idiosyncrasy of the language. What's more, Readonly also lets you write-protect hashes and arrays although at a performance cost.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Modification of a read-only value attempted
by BillKSmith (Monsignor) on Nov 27, 2012 at 20:50 UTC | |
by AnomalousMonk (Archbishop) on Nov 27, 2012 at 21:23 UTC |