Hi Ak,
I think that it would work the same way with numbered locales. You actually do know the number of the locale as it assigned when you create it. In the following example I have already changed my standard library definition of nl to include the extra line. This means that the numbered locale has access to nl through the z locale.
t=:conew 'j' NB. create a numbered object based on the j locale
copath t NB. it has a path through j and more importantly z so it has access to nl
┌─┬─┐
│j│z│
└─┴─┘
t NB. the value of t is <,'1'
┌─┐
│1│
└─┘
'A__t B_1_ C__t'=: 2 3 4 NB. I assign values to three variables in the t locale using either name__t or name_1_ as identifiers
A_1_
2
names__t '' NB. here are the names in the t local. COCREATOR is in all numbered locales
A_1_ B_1_ C_1_ COCREATOR_1_
conames 1 NB. there is only one numbered locale t which has the value of ,'1'
1
erase names__t '' NB. erase the names in the t locale
1 1 1 1
names__t '' NB. no names left
coerase t NB. erase the locale
1
conames 1 NB. no numbered locales left
Cheers, bob