> On Oct 29, 2018, at 5:24 PM, R0b0t1 <r03...@gmail.com> wrote:
> 
> I think it is important to differentiate between a language feature
> and its common implementation. Perhaps case statements with variables
> make sense? Of course, that doesn't mean anyone is going to add them.

I’ve been programming Pascal since about 1995 and I never knew cases were an 
optimization or had any special meaning. In my mind I thought they were just a 
nice way to do branching when there were lots of cases to check (hence the 
“case statement”).

Under the hood I would think cases with variables should just perform as 
if..else statements but as was pointed out that would require a significant 
amount of work.

Just wanted to make sure I wasn’t going crazy because you’d think a person like 
me would know something so basic about Pascal by now.

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to