sorry! it was my mistake.

I should write as Raul suggested or

cc =: 3 : 0
18!:3 <y        NB. create a new boxed locale
('create_', y, '_') =: cocreate
('destroy_', y, '_') =: codestroy
conew y
)

Miller, Raul D wrote:
Yuvaraj Athur Raghuvir wrote:
cc =: 3 : 0
 18!:3 <y        NB. create a new boxed locale
 create_y_=: cocreate
 destroy_y_=: codestroy
 conew y
)

Change create_y_ to create__y

create_y_ is a name in the locale y.
create__y is a name in the locale referred to by the value of y.

Likewise for destroy.

My earlier comment about instances is irrelevant in this context.

FYI,



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

Reply via email to