This is in jconsole from j602, stopped after an error in an ijs script:
require 'misc'
smprompt_jijs_
|value error: smprompt_jijs_
smprompt_jijs_ =: >:
prompt 'hello '
this is strange
this is strange
3 :'y 1!:2 [ 4' 'test'
test
And here is the definition of prompt_z_ (and IFCONSOLE_z_ is 1, which
I illustrated by the lack of domain error from executing
smprompt_jijs_, in the above example)
prompt
3 : 0
'' prompt y
:
if. IFCONSOLE do.
y 1!:2 [ 4
1!:1 ] 1
else.
smprompt_jijs_ y;x
inp=. 1!:1 ] 1
len=. #y
(len * y -: len {. inp) }. inp
end.
)
test2=: 3 :'y 1!:2]4'
test2 '...'
...
test3=: 3 :'(1!:1]1) [ (y 1!:2[4)'
test3 'but this fails? '
yes
yes
Exiting the program results in all of the text being displayed that
happened in verbs that also included 1!:1]1.
Does anyone know why this happens, and how to defeat it?
Alternatively... is there a predefined word in (for example) j64-701
jconsole that has behavior like j602 prompt would have, if it did not
do this re-ordering of emitted text?
Thanks,
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm