There is nothing wrong with either DSM nor Cache. Both are strictly within the ANSI standard M. They both respond with exactly the same results.
DSM executes the line and thus the variable is <UNDEF> after executing the line of code as it should. Cache does so also. On my system, it shows me that Cache puts me in debug mode after executing the line. VAH>K A N A S A=100 VAH 1S1>W A 100 VAH 1S1>Q VAH>W A W A ^ <UNDEFINED> VAH> ----- Original Message ----- From: "Greg Woodhouse" <[EMAIL PROTECTED]> To: "Hardhats" <[email protected]> Sent: Thursday, March 10, 2005 11:36 AM Subject: [Hardhats-members] Another oddity - scope of NEW in DSM > A co-worker just pointed out the following oddity that occurs in DSM, > but not in Cache: > > > >N A S A=100 W A > 100 > >N A S A=100 > > >W A > > %DSM-E-UNDEF, undefined variable A > -DSM-I-ECODE, MUMPS error code: M6 > > > > Reviewing sections 7.1.2.2 and 8.2.14 of the standard, it's not clear > to me that the scoping rules in programmer mode are clearly defined. > > A practical man is a man who practices the errors of his forefathers. --Benjamin Disraeli > ==== > Greg Woodhouse > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Hardhats-members mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/hardhats-members ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Hardhats-members mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hardhats-members
