[fpc-pascal] Case statements without constants?

Ryan Joseph ryan at thealchemistguild.com
Mon Oct 29 10:10:37 CET 2018


I tried today to make a case that used variables instead of constants and was surprised to get an error. I’m sure this been true since the 80’s but why don’t cases allow variables??? I thought a case statement was just a group of if..else blocks in succession.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list