WSexplorer bug

For users of dfns, both novice and expert

WSexplorer bug

Postby giangiquario on Wed Dec 30, 2009 3:47 pm

Sometimes the Workspace Explorer (dyalog 12.1) has a weird behaviour.
This is an example:
===============================
)clear
)copy DFNS tree
'myNS'⎕ns''
myNS.NS←myNS

tree myNS
#.myNS
• NS → #.myNS
===============================
the tree function gives a correct answer, but if you open the WS explorer you’ll find that the tree under myNS has too many descendants.
Please see the attached file with an image of WS explorer.
WSexplorer.jpg
WSexplorer.jpg (34.43 KiB) Viewed 7978 times
User avatar
giangiquario
 
Posts: 46
Joined: Thu Nov 26, 2009 8:55 am
Location: Milano, Italia

Re: WSexplorer bug

Postby AndyS|Dyalog on Thu Dec 31, 2009 12:22 pm

Interesting one !

WSExplorer is showing that there are indeed recursive references; each time you double click on NS you descend one level further, and this is what WSEXplorer is showing. Similarly you can type )CS NS repeatedly, and in each case )OBS will show NS.

tree in dfns is stopping once it has realised that it has been here before.

Perhaps we need to have some way of indicating more clearly the recursive nature of such namespaces, but then we also would need to consider cases where the recursion is of a more complex nature.
User avatar
AndyS|Dyalog
 
Posts: 263
Joined: Tue May 12, 2009 6:06 pm


Return to Functional Programming

Who is online

Users browsing this forum: No registered users and 1 guest