in reply to Modification of a read-only value attempted
I've never taken this approach when making a read-only variable (opting for using constant/Readonly, instead).
Question for other monks: How common/acceptable is an approach like OP's $c=\99;? Although concise, it is less readable (and probably easy to not notice). Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Modification of a read-only value attempted
by choroba (Cardinal) on Nov 27, 2012 at 16:59 UTC | |
by frozenwithjoy (Priest) on Nov 27, 2012 at 17:02 UTC | |
|
Re^2: Modification of a read-only value attempted
by mbethke (Hermit) on Nov 27, 2012 at 17:03 UTC | |
by BillKSmith (Monsignor) on Nov 27, 2012 at 20:50 UTC | |
by AnomalousMonk (Archbishop) on Nov 27, 2012 at 21:23 UTC |