Proposal for SentinelInputRange

Steven Schveighoffer schveiguy at yahoo.com
Fri Mar 1 07:04:32 PST 2013


On Thu, 28 Feb 2013 17:00:06 -0500, Walter Bright  
<newshound2 at digitalmars.com> wrote:

> On 2/28/2013 9:25 AM, Steven Schveighoffer wrote:
>> You have already stated it gets changed into a jump table.
>
> Please, please listen to what I write. This is very frustrating. The  
> code in lexer.c is there for all to see, and it amply illustrates  
> everything I'm saying. For example, this code does not get translated  
> into a jump table:
>
>              case '+':
>                  p++;
>                  if (*p == '=')
>                  {   p++;
>                      t->value = TOKaddass;
>                  }
>                  else if (*p == '+')
>                  {   p++;
>                      t->value = TOKplusplus;
>                  }
>                  else
>                      t->value = TOKadd;
>                  return;

I don't need to add any more to this discussion, it seems more qualified  
people are making the points I am making, but in a more understandable way.

Sorry to add to your frustration.

-Steve


More information about the Digitalmars-d mailing list