Ryan Joseph <r...@thealchemistguild.com> schrieb am Mo., 29. Okt. 2018, 10:41:
> 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. > No it's not. At least for ordinal values it's usually implemented as a jump table or something optimized like that which would not work with variables as labels. Regards, Sven >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal