Creating a namespace and copying another

General APL language issues

Creating a namespace and copying another

Postby petermsiegel on Mon Apr 24, 2017 6:13 pm

Is there documentation on what exactly causes NONCE ERRORS when copying namespaces using the standard formula:

'namespace' ⎕NS another_namespace

It seems as if some namespaces can't be copied (on the RHS), and I'm guessing it has to do with recursive namespaces (i.e. namespaces within "another_namespace"), but I'm not sure. To get around, I simply create a slightly convoluted expression to copy in another_namespace's items of nameclasses (⎕NC) 2 3 4, but not (sadly) 9.

My question is really two-- (1) what is going on and (2) where is it documented (with apologies for missing an obvious location despite brute-force searches for NONCE ERRORS). CHEERS!
Posts: 98
Joined: Thu Nov 11, 2010 11:04 pm

Return to Language

Who is online

Users browsing this forum: No registered users and 1 guest