On Sat, 02 May 2009, bob therriault wrote:
> I still wonder about assigning display to the z locale. I think this
> may be part of Oleg's suggestion for a new name, 'disprep', but I am
> concerned that the user would have to know which names are already in
> the z locale (no matter how obscure) before they safely used this
> program. Two solutions I have thought about are checking the z locale
> programmatically before assigning, or making this script a class and
> the form an object instance. I'm working on my object oriented
> understanding, so this may be a silly suggestion.
I think you need not too worry name collision unless you intended to
submit your code to the J base library.
If you intend you rerun the code in its `base' locale, a simpler way
of not using display_resume will be close the form first or just
ignore any anticipated error.
replace the line
wd DISPLAY
with
wd ::0: 'psel display;pclose'
wd DISPLAY
or just
wd ::0: DISPLAY
If you intend to run in a new instance. It needs to rename
`display_run' to `create' and add a verb `destroy' for cleanup.
Then run the program by '+/%#' conew 'rgtVisual'
(untested)
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩122 王維 漢江臨眺
楚塞三湘接 荊門九派通 江流天地外 山色有無中
郡邑浮前浦 波瀾動遠空 襄陽好風日 留醉與山翁
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm