Hello:
In this example:
PROGRAM STR; {$IFDEF BAD} TYPE P=PROCEDURE(S:STRING); {$ENDIF} VAR S:STRING; BEGIN S:='123'; DELETE(S,1,1); WRITELN(S) END.
with GPC v 19990118 (DJGPP and Linux) and GPC v 19990609
when I "gpc -o str str.pas" I get: "23", the delete procedure works fine. But if I "gpc -o str str.pas -DBAD" then I get: "123". I lost my delete procedure :'-(
I'm trying to migrate to GPC from TP. I want that the source compiles in TP, GPC in DOS and GPC in Linux.
But I have some problems. How can I use the BP Strings Schema for not converting databases?
I'm not realy sure. But I think that when I try compile a line who needs a function which returns a string but this function is undeclared; the compiler breaks. I'll work on it for getting the realy trouble, and then ask you for help.
Thanks... Alfredo