Page 1 of 1

*solved* require

Posted: 21 Oct 2020 22:12
by Ron Melby
perhaps I dont understand require.

if I have at the beginning of a program (PGM):
require '_STD_MAT'
and in the beginning of the program _STD_MAT I have the line
require '_STD_RTV'

shouldn't all the functions in _STD_MAT and _STD_RTV be available to PGM?
or am I misunderstanding the 'Globalness'?

sorted. a local function caught me out. I debugged and scanned thru _G: rtv* functions were in there, it has been so long since I have looked inside my _STD_* modules I had forgotten that a function that I had only called from _RTV itself was a local function and I was for the first time in all this mess I make, needing to call it from a program directly.