Fixed for the next beta. Thanks for the reliable failure report. The
error was catastrophic, corrupting the index-vector area:
down =. |. ] up =. i. # ] b =. 1 0 0 0 1 0 0 1 1 1
up =: b } up,:down
i. 6
9 1 2 3 5 5
This is a fatal dose of mustard gas, and you were lucky to crash quickly.
Workaround: assign the result of b} to a name that doesn't appear on the
right-hand side, e. g.
updown =. b } up,:down
Henry Rich
On 10/5/2022 2:01 AM, John Ference wrote:
down =. |. ] up =. i. # ] b =. ? 2 #~ L =. 10
up =: b } up,:down
up
Oddly, this special combination produces a segfault upon reading the value
of 'up'.
This occurs with L = 10, but not necessarily with other values of L, and
not with '?.' instead of '?'
https://code.jsoftware.com/wiki/Vocabulary/SpecialCombinations#Assignments_In_Place_.28AIP.29
JVERSION
Engine: j904/j64avx/darwin
Beta-g: commercial/2022-10-04T00:04:16
Library: 9.04.04
Qt IDE: 2.0.3/6.2.4(6.2.4)
Platform: Darwin 64
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm