28 Jul
2003
28 Jul
'03
6:51 a.m.
Hi! As I told I have some problems in the last GPC version (20030507) with repeated declaration in implementation part. consider the following: module test1 interface; export test1=all; procedure mt1 (str:string); function mt2 (str:string):string; end. module test1 implementation; procedure mt1 (str:string); begin writeln (str); end; function mt2 (str:string):string; begin mt2:=str; end; end. this file doesn't compile. GPC tells that mt2 redeclaration doesn't match the first one. The funny thing is that if I add type mystr=string after the "export" line and then change the function to use mystr - everything compile. Nick
8422
Age (days ago)
8422
Last active (days ago)
2 comments
2 participants
participants (2)
-
Frank Heckenbach -
nick