I have been trying to study the fasinating game moo from the following link.
http://www.jsoftware.com/jwiki/Essays/moo The code there starts as follows. load 'misc' NB. needs "prompt" from "misc" not found: /Users/brian/misc |file name error: script | 0!:0 y[4!:55<'y' After some searching I found the following definition of `prompt` in misc.ijs from j602, but was unable to find a version in j803. NB. ========================================================= NB.*prompt v prompt for input NB. NB. prompts for input, optionally with a default result NB. NB. form: [default] prompt prompt_text NB. NB. examples: NB. prompt 'start date: ' NB. '2001 5 23' prompt 'start date: ' NB. NB. Note: the default is not available in jconsole. 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. ) But I get the following error when running moo. moo 4$10 |control error: prompt | '' prompt y JVERSION Engine: j701/2011-01-10/11:25 build: Feb 6 2011 16:16:29 Library: 8.03.05 Platform: Darwin 64 Installer: J803 install InstallPath: /users/brian/j64-803 Is there a newer version of prompt that can be used? -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
