The variable 'bin' contains an 11 byte program as a character string
which adds two integer arguments and returns the integer result.

(,(2#16)#:a. i. bin) {'0123456789abcdef'
5589e58b450c0345085dc3

Now, if I allocate 11 bytes of memory, place this program in it, and
try to call it with 'cd', the following happens.

mema 11
16973880

bin memw 16973880 0 11
plus =: '0 16973880 i i i'&cd
plus 100;200

<J then crashes>

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

Reply via email to