나는 Specman을 다음 코드 한 :이 두 번 x
에 할당을 작성하는 낭비 이제specman에서 변수에 대한 참조를 만들려면 어떻게해야합니까?
var x := some.very.long.path.to.a.variable.in.another.struct;
while (x == some_value) {
//do something that uses x;
//wait for something
//get a new value for x
x = some.very.long.path.to.a.variable.in.another.struct;
};
보인다; 초기화 중에 한 번, 루프 중에 한 번.
var x := reference to some.very.long.path.to.a.variable.in.another.struct;
while (x == some_value) {
//do something that uses x;
//wait for something
//no need to update x now since it's a reference
};
이는 Specman을 수행 할 수 있습니다 내가 할 수 있도록
는 내가 정말 사용하려는 것은, 긴 변수 이름에 대한 참조입니다?