Computed gotos on Reddit
deadalnix at gmail.com
Sun Jul 22 20:05:02 PDT 2012
On 23/07/2012 01:35, bearophile wrote:
> A discussion appeared few days ago on Reddit, about computed gotos:
The presented example is insanely unsafe. By giving invalid input, you
can basically branch randomly.
The check added by the switch is what is required to make it safe, so it
isn't faster at the end.
The case in the article isn't very strong.
More information about the Digitalmars-d