Is Exit not included in GPC? i.e.
program test;
procedure t1(a:integer); begin writeln('hello1'); if a = 1 then exit; writeln('hello2'); end;
begin writeln('hello'); t1(1); t1(0); writeln('hello3'); end.
should produce: hello hello1 hello1 hello2 hello3
but I get Undefined Indentifier 'Exit' I tried using return; and that works. I posted this question to the comp.lang.pascal NG and had someone from Borland tell me that Exit should do the trick (I didn't say I wasn't using TP tho).
Is exit a Borland thing?
-SC
When it comes to compability on the issue of strings, would'nt it be natural to call the short string version just "string" and the long one "longstr", instead of the other way around?
This means Programs originally made for Borland will run just fine, (since borland (and i belive) the rest) have 255 byte strings) and will compile more like they where intended to do.
Seems logical to me :)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Kim Robert Blix ( kblix@sn.no & http://home.sn.no/~kblix )
"How do you shoot the devil in the back?" "What if you miss?" -Verbal Kint =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=