Author Topic: * in *  (Read 585 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
* in *
« on: January 10, 2008, 08:31:40 pm »
The pascal compiler seems not to yell at me for the "in" part, but rather the datatype... I googled a little and found a few new things I wanted to test and learn (lol, like 50% of the few things i found seems that the compiler doesn't recognize)

Code: [Select]
if i in [5..10] then ... is the example from wikipedia that I found...

I originally found something like that with strings... and I don't have the site open atm but it was something like
Code: [Select]
if not ('somevarstr' in ['A'..'Z', 'a'..'z']) then ...except 'somevarstr' was a variable... which is what led me to a pascal wiki...

If the compiler doesn't support this, may I ask why it doesn't yell at me for "in" being in there?