declare'd extern variables with no declared global reference...

John Esak john at valar.com
Tue Apr 20 00:47:52 PDT 2004


If on a call table you have:


   declare extern rolls_per_carton

and by mistake on the calling table you have:

   declare global rolls_per_case

and you reference the extern variable on the call table as follows:


     then: q=rolls_per_carton


I think the program should complain at runtime that there is no such global
variable as "rolls_per_carton".  Instead, the table seems to run and just
treat the unfounded variable as null.  This is not right, is it?  I mean if
I had put something like:

    q=xx

on the call table and xx is not a variable anywhere else on that table or
defined on the automatic table, it would complain... why shouldn't it
complain in the case of a declare'd variable that has no basis, meaning no
partnered "declare'd global" in the calling table.


John Esak



More information about the Filepro-list mailing list