Hello,
Is this construction consistent with the design specs of the memory
management functions?

s =. 'Hello world'

read =. {{p [ y memw p,0,(>: # y),2 [ p =. mema >: # y}}

write =. {{res [ memf y [ res =. memr y,0,_1,2}}


NB. test:

<./ (,. write@read&.> <\ s) = (,. <\ s)

Results are non-deterministic, but the results at the test at the end
typically return 0.

Visual inspection of the result suggests the capability to auto-append and
then auto-find an end-of-string indicator may not be working.

specs: https://code.jsoftware.com/wiki/Guides/DLLs/Memory_Management

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

Reply via email to