Great trouble report.  I can reproduce it. The problem is that a read-only value (like i. 7) erroneously becomes inplaceable when returned from an explicit definition.

Workaround: make the value not read-only, as with

itoms=: 3 : '00 + i.7'

Henry Rich

On 10/18/2021 3:16 PM, Ian Clark wrote:
Turns out it's quite simple and doesn't need any addons.

Start a virgin session, with no config/startup.ijs to be sure of no
environmental dependencies...

itoms=: 3 : 'i.7'

i.10

0 1 2 3 4 5 6 7 8 9

0*itoms''

0 0 0 0 0 0 0

i.10

0 0 0 0 0 0 0 7 8 9

JVERSION

Engine: j903/j64/darwin

Beta-u: commercial/2021-10-01T12:07:35

Library: 9.03.06

Qt IDE: 1.9.4/5.15.2(5.15.2)

Platform: Darwin 64

Installer: J903 install

InstallPath: /applications/j903

Contact: www.jsoftware.com


On Mon, 18 Oct 2021 at 18:37, bill lam <[email protected]> wrote:

I can reproduce Ian's failure on Linux j903.

I can also reproduce Henry's failure on windows j903.


On Tue, Oct 19, 2021 at 1:10 AM Henry Rich <[email protected]> wrote:

I get:

     load 'math/cal'

     start_cal_ 0
1

     tabengine_cal_'CTBU'
[cal#40] >>> no t-table loaded yet

Don't worry too much about getting a small failure - any reproducible
failure will do.

hhr

On 10/18/2021 12:34 PM, Ian Clark wrote:
Recent JE upgrades have bitten the CAL addon badly.
More to the point, CAL bites back.
By corrupting JE, specifically (i.)

JVERSION

Engine: j903/j64/darwin

Beta-u: commercial/2021-10-01T12:07:35

Library: 9.03.06

Qt IDE: 1.9.4/5.15.2(5.15.2)

Platform: Darwin 64

Installer: J903 install

InstallPath: /applications/j903

Contact: www.jsoftware.com


load 'math/cal'

start_cal_ 0

1

tabengine_cal_'CTBU'

tabengineError: bad instruction

CTBU

errmsg from CAL_CTBU

|index error: pack

| z=.,:0 {y[r=.}:$y


[error message repeated]


i.10

0 0 0 0 0 0 0 7 8 9


I don't think the mischief is being done by pack_cal_ but by its
calling
verb: arrowch_cal_ .

The latter somehow munges a presumed cache of (i.) values, and
pack_cal_
falls over as a result.

I'm busy teasing out a simple standalone code sample. But I thought I'd
report the bug right away since it is insidious and impactful.


Same thing happens in j902 too, but not in j901.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

--
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


--
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to