Is #L8 truly global?

Mike Matthews - Omnis omnis at lineal.co.uk
Fri Nov 10 09:07:11 UTC 2023


Hello Kelly,

Yes, you are quite right.  I had a local var as my list definition.  When I used #S5, all was good.

Thanks

Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>

www.lineal.co.uk<http://www.lineal.co.uk/>

www.sqlworks.co.uk<http://www.sqlworks.co/>



On 9 Nov 2023, at 13:08, Kelly Burgess <kellyb at montana.com<mailto:kellyb at montana.com>> wrote:

Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.



Hi Mike,

But if you close Library A, then #L8 disappears.

I think technically what's getting blown away is the list definition.

My testing shows two of my #Ln lists survived closing all libraries, and four others did not.

The ones that survived were either defined for hash variables, or were constructed using e.g. #L7.$cols.$add('pattern',kCharacter,...).

The ones that didn't survive were defined for file class variables, instance variables and local variables - so those lists' definitions disappeared with the closing of the library containing the classes defining their column variables.

Does your library A definition of #L8 depend on something that goes away when library A closes?

Kelly
_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,VPqAfZABcyGlW8l57nz3T2yEN_PIQ9l4O-N5FT5whwpTTG4iMnQxzpZBi_rZv6i-TRAAjH_ej2G8oKcOhl2-_eXf684t4kJaY3DyJkEnEbdZBKK6oEeF&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list