4 ms·
The Pascal language is not case sensitive, nor, as far as I know, are any of its variants. From my experience with Delphi/Object Pascal back in the day, nobody
by hsitz 9y ago
The Pascal language is not case sensitive, nor, as far as I know, are any of its variants. From my experience with Delphi/Object Pascal back in the day, nobody capitalized keywords. You can see an example of typical code with lowercase keywords here:
https://github.com/MarcoDelphiBooks/ObjectPascalHandbook/blob/master/01/HelloVisual/HelloVisualForm.pas https://github.com/MarcoDelphiBooks/ObjectPascalHandbook/blo...
- vidarh 9y agoIt is very common to see these languages typeset with uppercase keywords, though, but a lot of that certainly was the monochrome alternative to syntax-highlighting...
- fasquoika 9y agoFrom "The Oberon Programming Language"[0]: "Capital and lower-case letters are considered as being distinct....These reserved words consist exclusively of capital letters and cannot be used in the role of identifiers". So it seems that keywords do need to be in all-caps, at least if your compiler is compatible with Wirth's description (the standard?). [0]: https://people.inf.ethz.ch/wirth/Oberon/Oberon07.Report.pdf https://people.inf.ethz.ch/wirth/Oberon/Oberon07.Report.pdf
- mark-r 9y agoPascal was developed at a time when you couldn't count on both upper case and lower case being available. I learned it on a Control Data Cyber (6-bit character set) using Teletypes.