Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-04

Case Sensitivity

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Richard Ward
(snipped) Pascal is case insensitive .

It may help newcomers like myself if this was mentioned on the ref document. Just double checked and it does not mention this.

---

Interestingly, I was going over the lang ref guide last night and found that the case sensitivity is mentioned in section 1.3 for reserved words. It might be better to mention this in section 1.1 to cover more than just reserved words. To be complete, it would probably be good to mention it in several places in the documentation where someone might want to look for it, but this would make the document(s) very bloated. A problematic tradeoff. The only practical solution I see for newbies would be to completely read through the lang ref guide once. Some concepts may seem foreign but those you can go back over if needed.

Francisco Reyes
to Richard Ward
Richard Ward wrote
Interestingly, I was going over the lang ref guide last night and found that the case sensitivity is mentioned in section 1.3 for

I think from seen this new thread and a few other posts that there is some confusion.

When I posted my sample code I had the unit name and a function name with the same name, but different case. Someone wrote and mentioned that was the problem and that one can not have function and unit with same name. This person also mentioned that Pascal is case insensitive so these two names were the same.

When I wrote that I didn't see something in the ref doc.. I was NOT refering to case sensitivity. I was refering to not seeing a note that one can not have a unit name be the same as a function name. I was never refering to case sensitivity. Sorry for not been more clear.

Vinzent Höfler
to Francisco Reyes
Richard Ward wrote
I was refering to not seeing a note that one can not have a unit name be the same as a function name.

Sure you can, the function just should not reside in the very same unit. This is a short-coming of the Pascal language definition.

Vinzent.

Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01