I have two scripts that both need the same utility function. Instead of having that function's code in both scripts, I thought I'd put it into a .xyi file and then just
load this file.So initially that file only looked like:
function foo(){
// some code
}However,
load foo.xyi then failed with a msg "Script 'foo.xyi' does not contain any valid lines". If fixed this by adding a line $a=1; at the bottom - but that can't be the recommended way of dealing with such shared tools - so where's my fault?
XYplorer Beta Club