So I was reading the wiki on Pascal and found this line...
z : Pear..Orange; Set3 : set of Pear..Orange;
So I just had know what was in the middle of the set containing pear and orange so I installed the free pascal compiler and tried it. I wrote this...
PROGRAM Hello(output); VAR Set3 : set of pear..orange; BEGIN writeln(z); END.
I also tried it the other where of just declaring z but that didn't work either.
It errors out saying...
pear.pas(4,20) Error: Identifier not found "Pear"
pear.pas(4,28) Error: Identifier not found "Orange"
Which is exactly what I expected to come out because the idea that a programmer suddenly decided that this set should exist in a language, thats been used for years, seemed kind of absurd. So I'm assuming Wikipedia is lying to me. So will someone tell me that I'm right or show me the working code that does this. I mean I'm sure you could use some sort of string set containing all possible combinations between Pear and Orange, still seems stupid. But I don't think it understands the ideas of fruit. So please someone just confirm that I'm not crazy. I mean frankly if Pascal actually does understand the ideas of fruit and the set containing fruit I'm gonna learn it because that's just crazy. Though if I ever build a language, and one day I will, I just might put it in. Because I'm a nerd and programming and MATHHHHH.
Thanks for helping me understand.