NB. regular verb using Do (".) d=. 3 : '". ''vb=. +:y''' d i.21 0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
NB. verb with call to compiler dc=. 13 : '". ''vb=. +:y''' dc 5 2 dc i.21 2 dc("0) i.21 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 NB. Stuck at (2:) and using rank somehow differently. NB. verb using inside definition works alright: di=. 3 : '3 * dbl y [ ". ''dbl=. +:''' di 5 30 NB. with(13 :) refuses to work ... dic=. 13 : '3 * dbl y [ ". ''dbl=. +:''' dic 5 |value error: dbl | dic 5 -M ps: Regarding the (?) issue - Added a "Caution" section to the NuVoc "Roll/Deal" page. At 2018-10-17 22:29, you wrote:
I am aware that executing code with ". relying on explicit context can trip 13 : , for instance, u=. 3 : '".''+:y''' u 5 10 v=. 13 : '".''+:y''' v 5 2: I am not quite sure but probably there are more glitches, according to, NuVoc 13 : https://code.jsoftware.com/wiki/Vocabulary/com#m13 "If you get exotic, you may encounter a bug or two in the implementation of 13 :"
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm