Re: Is the 4gl 4.12/13/whatever compiler a bit smarter
Posted in 1994
Andrey Yu. Grachyov — — source: Informix-list mailing list archive (1991-1998)
Hi! : MAIN : WHENEVER ANY ERROR STOP : CALL b() : CALL a() : END MAIN : : FUNCTION a() : WHENEVER ANY ERROR CONTINUE : END FUNCTION : : FUNCTION b() : DEFINE i INTEGER : LET i = 1 / 0 : END FUNCTION : : This program will *NOT* stop with an error message in function b. That's right. "The WHENEVER ERROR statement is a compile-time switch." (4GL User Guide p.10-8, ver 4.00). It means function b has been compiled with "WHENEVER ANY ERROR CONTINUE" switch. --------------------------------------------------------------- Andrew Yu. Grachyov | Phone +7 (095) 928-6078 TERN, Moscow, Russia | +7 (095) 925-1785 andy@tern.msk.su | Fax +7 (095) 280-3870