Frank Heckenbach schrieb:
We've discussed this, but using the capitalization from the Pascal identifier would, unfortunately, be wrong because Pascal by definition is case-insensitive, i.e.
procedure Foo; external;
and
procedure foo; external;
are equivalent, i.e. must yield the same result. Of course, FPC doesn't care about standard Pascal, but GPC does (and also applies them, as much as reasonable, to non-standard extensions such as "external").
external is something to interface to external libraries which aren't necessarily written in pascal so we've to give up some pascal principles here when deriving the external name of the procedure :) BTW: Where is it written in any standard that you always lower case identifiers internally? FPC uppercases by default everything internally.