#autoload

for thing in "$@"; do
  case $(where "${thing}") in
    *'builtin autoload'*)
      autoload +X "${thing}"
      echo "# note: ${thing} was autoloaded"
      ;;
    *) ;;
  esac
done

where "$@"
