What is the value of LINE(CURRENT_INPUT) after SET_INPUT? AI-00898/00 1 92-01-14 co RE !standard 14.03.02 (03) 92-01-14 AI-00898/00 !class confirmation 92-01-14 !status received 92-01-14 !topic What is the value of LINE(CURRENT_INPUT) after SET_INPUT? !summary 92-01-14 !question 92-01-14 !response 92-01-14 !appendix 91-12-09 ***************************************************************************** !section 14.03.02 (03) Kit Lester 91-12-09 83-01440 !version 1983 !topic What is the value of LINE(CURRENT_INPUT) after SET_INPUT? What is the value of LINE(CURRENT_INPUT) after a call of SET_INPUT? [Likewise: COL, PAGE, and the corresponding questions for CURRENT_OUTPUT and SET_OUTPUT: further, the corresponding questions for END_OF_LINE & co, even for NAME, FORM, and IS_OPEN.] 14.3.4(44) says that LINE "returns the current line number" - which 14.3.4(26) tells us will be for the file given as parameter (where there is one, as in this case). 14.3.2(3) says that SET_INPUT "sets the current default input file to ..." (the specified file). Taking these paragraphs together, it seems that calls of LINE for X and for CURRENT_INPUT should yield the same value after a call SET_INPUT(X), until another call of SET_INPUT(X). Is that deduction correct? [I find nothing in my current set of AIs, and at least one major compiler carries forward the LINE value of the FORMER "current default file". The logic seems to me to be independant of whether "file", in this case, means "internal file" or "external file".]