According to Frank Heckenbach:
Ooops, can't gpc write PChars at all? The following doesn't work:
program x; {$x+} var a:PChar; begin writeln(a) end.
Fixed.
Similarly, the following compiles with BP, but not with gpc:
program x; {$x+} var a:PChar; begin a:='Test' {in BP: assign the address of the 0-terminated string 'Test'#0 (stored somewhere statically) to a} end.
Fixed.
Greetings,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201] maintainer GNU Pascal [970510] - http://home.pages.de/~gnu-pascal/ [970125]