This slightly different code does not produce the same error. Can you explain how this code changes anything?

Code:
function DChannel_Up(int TimePeriod) {
	DChannel(TimePeriod);
	return series(rRealUpperBand);
}


Code:
vars aroon1 = DChannel_Up(70);