Adam Naumowicz wrote:
Hello, I would like to know what is the reason why GPC complains about type mismatch compiling lines like below: ....... var a:array[0..10] of integer;
function at(const index:integer):integer; begin at:=a[index]; end; ....... It seems to me, that there is a too rigid type checking in this matter. Why are constants not allowed here ?
My compiler fails on the `.......' which is not a valid start of a Pascal program. In other words: Please post complete test programs! I'm just back from a 3 days conference, and found more than 100 mails waiting for me, so I really don't feel like completing such code fragments, sorry. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/ GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html