QTIPS - Potential Problem When Using @ANS

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 JAN 19922.11+EXPERT@ANS, SI.MFS

Writing to a file with SI.MFS attached causes the ! code to be invoked. The ! code (being essentially a dictionary item) uses @ANS to pass information around - thus before returning control to the calling program, it nulls down @ANS. Hence the act of writing to a file with SI.MFS attached clears out @ANS. The moral is simple, as @ANS is a temporary answer variable, do not use it to store values between processes.

(Volume 3, Issue 8, Page 10)

  • tips/revmedia/v3i8a10.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1