6
다음과 같은 getFeatures.m
이라는 함수 파일이 있습니다.전 세계 동일한 클래스 가져 오기
function [features] getFeatures()
% Import the XPath classes
import javax.xml.xpath.*
% other code
end
function [name] = getName()
% Import the XPath classes
import javax.xml.xpath.*
% other code
end
두 함수는 xpath 라이브러리를 가져옵니다.이 클래스를 가져올 함수가 많기 때문에이 함수를 어떻게 수행 할 수 있습니까? 시각?
왜 가져 오기를 기능 밖으로 옮기지 않습니까? – cyborg