Would it be possible to extend the behavior of $dialog( N )
to be able to take an optional table argument as well, such that it (as would hopefully be obvious) returns the name of the Nth dialog using a specific dialog table (or the total number of them if N == 0), rather than just giving an "invalid name" error as it does currently? I realize this use case might very well be rather niche; I'm not entirely sure how common it is to even have multiple dialogs with the same dialog table open at once, and of course it isn't difficult to emulate the behavior by checking the table
property, but certainly some scripts somewhere must allow multiple dialogs with the same table to be open at once, and for those that do, not having to manually make that specific check would probably be a small but nice bit of relief.