Hallo Martin, Du schriebst am Tue, 19 Nov 2013 07:05:56 +0100:
> String case labels sometimes are handy and can be implemented by a hash > table for example. Certainly. With today's processor's addressing ranges, you might even be able to compile the hash result into an exhaustive jump table, which was the intention of a case implementation. But you will _still_ have to provide a way to deal with hash code collisions,because you cannot avoid them with certainty. BTW, what you showed as an example before was _not_ a "hash table", it was a simple linear token list which had to be scanned for each call to determine the case index. Of course, you could have the compiler do that, there's no limit to what it can include automatically on behalf of the code writer. Depends solely on how much effort you're willing to put in it. -- -- (Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem) ----------------------------------------------------------- Mit freundlichen Grüßen, S. Schicktanz ----------------------------------------------------------- ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk