yes,when creating multiple instances,it complaints noun already
mapped.Thank you and Oleg for the right solution!
2008/1/2, bill lam <[EMAIL PROTECTED]>:
> Did it work? I meant if this line called twice
>
> map_jmf_ 'PARA__myloc';parafile;parafile;0
>
> will it complaint noun already mapped?
>
> Alternatively, you may try de-reference before passing it to fullname, eg.
>
> map_jmf_ ('PARA_', (>myloc),'_');parafile;parafile;0
>
> Xu Zuoqian wrote:
> > When writing script using OOP style,I need to map a jmf file to an
> > object field.The code is
> > myloc_z_=:coname ''
> > map_jmf_ 'PARA__myloc';parafile;parafile;0
> > But the jmf library gives a 'bad noun name' error.I change 2 places
> > to handle this indirect localtive case and avoid the assertion.
> > 1. change the 2nd line of verb "fullname" to
> > t,(('_'~:{:t)*.(0=+/'__'E. t))#'_base_'
> > 2. change the 17th line of verb "map" to
> > 'bad noun name'assert (('_'={:name)+.(0<+/'__' E. name))*._1=nc<name
> > It seems working.
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm