According to Harry Reed:
In the users' manual chapter "About Pascal and Extended Pascal
languages" there is a small example on how to initialize constant strings. When I try compiling the fragment with gpc 1.2(2.7.2)#7 I get the error messages as showm below. Is this a valid bug or am I just doing something wrong?
Extended Pascal initialized *structured* variables are not (yet) implemented into GPC, only (parts of) Borland Pascal style initializers. However some fragments of Extended Pascal initializers *do* exist in gpc-parse.y, but I don't know when they will work.
Everybody be invited to help implementing this!
MyStrings : array [1..MyStringsCount] of Ident value [
Square brackets do not work. Use parantheses instead. ^
1:'EXPORT'; 2:'IMPLEMENTATION'; 3:'IMPORT';
You may specify Indices etc., but they are ignored completely.
Even worse: Initialization of Strings does not work at all. Only "simpler" types, i.e. array/record combinations containing Integers, Reals, etc. work.
This is a known bug, but I forgot to document it. Thank you for pointing me to it.
PS: Great work on GPC! Keep it up!!!!
Thanks a lot. :-) :-) I will continue unless somebody makes big efforts to stop me. ;-)
Peter