Ewart wrote:
>  Is it currently possible to prompt & receive input on the one line?

In the session manager, yes:

           r=.(#q)}.1!:1 1: wde_0_ 'setreplace e *',q=.'Sex(M/F): '
        Sex(M/F): M

           r
        M
           
in the console, no.   See also Ric Sherloc's writeup on this pattern:

    http://www.jsoftware.com/jwiki/RicSherlock/Temp/InteractivePrompt

if you read the comments you can see that at least some of us think
user-prompting like this is poor practice and should be avoided:

    http://www.jsoftware.com/pipermail/programming/2007-April/006059.html
   
http://www.jsoftware.com/jwiki/RicSherlock/Temp/InteractivePrompt#Discussion
    http://www.jsoftware.com/pipermail/programming/2007-April/006091.html

Despite that, however, you'll also see that I provide a drop-in framework
for REPL (Read Evaluate Print Loops) for those who require it:

    http://www.jsoftware.com/svn/DanBron/trunk/general/r_pl.ijs   

-Dan
-- 
View this message in context: 
http://www.nabble.com/inline-input-tf4770941s24193.html#a13649017
Sent from the J Programming mailing list archive at Nabble.com.

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

Reply via email to