We already have a DIM that can scope variable explicitly. By default any instantiated variable is "Global" in scope. Functions are are Global.

What is missing is a way to maintain and address those specially defined variables that are currently out of scope by namespace or package. We could scope functions in different packages or namespaces.

Maybe...

@scriptname:$A or other similar convention

or an explicit KiXtart command that defines a namespace.

package Myfunctions
function A()...Endfunction
function B()...Endfunction

Package OtherFunctions
function A()...Endfunction

If this construct was established then were could have functions and variable by the same name but stored in different scripts or sections of a script and called independently of each other.

ShawnsScript:functionA()
MyFunctions:functionA()

Maintaining a function library would be greatly enhanced.
_________________________
Home page: http://www.kixhelp.com/hb/