in reply to Re: Re^3: Naming Subs
in thread Naming Subs
OK, in this specific context: if you use a symbolic ref, it's easier to accidently allow the user access to subs they shouldn't have access to. For example, in a text-based RPG, there's quite likely a win sub, which is called when the user wins. If you use a symbolic-ref based implementation, unless you're careful, the user can simply type "win" to win the game. In a hash-based system, you'd have to explicitly put the win key in the hash, so it's quite unlikely to happen accidently.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Naming Subs
by Abigail-II (Bishop) on Jan 13, 2003 at 14:36 UTC | |
Re: Re: Re: Re^3: Naming Subs
by dug (Chaplain) on Jan 13, 2003 at 04:28 UTC | |
by Aristotle (Chancellor) on Jan 13, 2003 at 09:03 UTC | |
by theorbtwo (Prior) on Jan 13, 2003 at 05:19 UTC | |
by dug (Chaplain) on Jan 13, 2003 at 05:44 UTC | |
by Ionizor (Pilgrim) on Jan 13, 2003 at 21:34 UTC |