function luaY.searchvar(D,a,V)for W=a.nactvar-1,0,-1 do if V==(D:getlocvar(a,W)).varname then return W end end return-1 end
------------------------------------------------------------------------
-- search the local variable namespace of the given fs for a match
-- * used only in singlevaraux()
------------------------------------------------------------------------
function luaY:searchvar(fs, n)
	for i = fs.nactvar - 1, 0, -1 do
		if n == self:getlocvar(fs, i).varname then
			return i
		end
	end
	return -1 -- not found
end
