in reply to Re: When should I use a dispatch table?
in thread When should I use a dispatch table?
traveler,
The values are integers only because it made enumerating easier. The string equality is intentional. The 1 .. n could have as easily been 'a' .. 'z'.
The values are integers only because it made enumerating easier. The string equality is intentional. The 1 .. n could have as easily been 'a' .. 'z'.
The testing for the hash key existance is necessary sometimes (default condition). The template didn't discriminate and always added it. Thanks to your keen eye, it has been fixed. It did not change the results that much with or without default conditions.
Cheers - L~R
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: When should I use a dispatch table?
by traveler (Parson) on Nov 30, 2006 at 23:53 UTC | |
by Limbic~Region (Chancellor) on Dec 01, 2006 at 00:18 UTC |
In Section
Meditations