That’s true for the most simple cases only. That way one gets a display of a value rather than of a definition.
Consider these definitions and “definition query” (as I said, it’s simply a display of value): adv =: 1 : 'm&+' v =: 5 adv v 5&+ In more complicated situations you would want to see the complete sentence to the right of =: . So it’s good to have a mechanism easing retrieval of this information. Am 08.03.20 um 17:45 schrieb David Lambert:
This is great! Maybe I whereDefined will help me diagnose my qt mysteries. Meanwhile, let's remember one of the great joys of j that doesn't happen with most other languages. We get the definition directly. echo 0 0 $ 1!:2&2 Date: Sat, 7 Mar 2020 14:28:05 -0500 From: Devon McCormick <devon...@gmail.com> To: J-programming forum <programm...@jsoftware.com> Subject: Re: [Jprogramming] Origin of definitions (was Programming Digest, Vol 174, Issue 7) Message-ID: <cagdempgf5bv5tg9q8iy7uykgegcallnh7d6wuy7vdypmxfe...@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" I've used this, courtesy of Dan Bron, for years: whereDefined=: 3 : '(4!:4{.;:y) {:: (4!:3''''),<''Source of definition not found for '',''.'',~y' ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- ---------------------- mail written using NEO neo-layout.org ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm