Why does the starting namespace for ⍵⍵ change based on ⍺⍺?
12 posts
• Page 2 of 2 • 1, 2
Re: Why does the starting namespace for ⍵⍵ change based on ⍺
Hi Phil,
Bug 17 is fixed in 18.0.
There are issues with the fix and calling dfns from within dfns with ⍎ or via trad ops.
You can find more details about it here:
"Issues with mixed Lexical and Dynamic Scope" https://www.dyalog.com/news/141/420/Introducing-Dyalog-Version-18-0-Issue-2.htm
Regards,
Vince
Bug 17 is fixed in 18.0.
There are issues with the fix and calling dfns from within dfns with ⍎ or via trad ops.
You can find more details about it here:
"Issues with mixed Lexical and Dynamic Scope" https://www.dyalog.com/news/141/420/Introducing-Dyalog-Version-18-0-Issue-2.htm
Regards,
Vince
- Vince|Dyalog
- Posts: 408
- Joined: Wed Oct 01, 2008 9:39 am
Re: Why does the starting namespace for ⍵⍵ change based on ⍺
Thanks so much, all, for investigating.
The interesting thing about this bug is it's so easy to write concise, reasonable code that surprises you (or worse, works incorrectly without giving notice). Even if you don't change classes of operands willy-nilly, you'd expect to be able to reason about what the starting namespace is for each operand and for the operator itself. OTOH, there is an easy workaround, when you are aware of the problem.
The interesting thing about this bug is it's so easy to write concise, reasonable code that surprises you (or worse, works incorrectly without giving notice). Even if you don't change classes of operands willy-nilly, you'd expect to be able to reason about what the starting namespace is for each operand and for the operator itself. OTOH, there is an easy workaround, when you are aware of the problem.
- petermsiegel
- Posts: 141
- Joined: Thu Nov 11, 2010 11:04 pm
12 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group