Re: 'Hierarchy' of libs?
Re: 'Hierarchy' of libs?
- Subject: Re: 'Hierarchy' of libs?
- From: "Serge Belleudy-d'Espinose" <email@hidden>
- Date: Thu, 8 Feb 2001 15:46:35 +0100
At 7:10 -0500 8/02/01, Bill Cheeseman wrote:
>
Also, I don't think you should use property "parent"
>
in lib2. Instead, just declare a property "myLib" (or whatever) in lib2.
After many tests, I came to the conclusion that the real problem is the 'parent' feature.
lib1 saved as compiled script inside the Scripts folder:
on handler1()
display dialog "handler1 inside script object1 inside lib1"
end handler1
lib2 saved as compiled script:
property my_lib1 : load script file ("" & (path to scripts folder) & "lib1")
Now, something like:
property my_lib2 : load script file ("" & (path to scripts folder) & "lib2")
my_lib2's my_lib1's handler1()
will work everytime (for the record, I gave up after my_lib4 :)
But it lacks flexibility and is against any object design, since you have to know the inner structure.
Using parent otoh is transparent, and will work provided you take some care with your editors.
So for me it's definitely a SMILE problem, that you can however turn around when you know it. I'll let his author know, if he's not already 'with us'.
Thanks for your time,
Serge
__ __ __
_ \///\/ _ I N S T I T U T | Serge Belleudy-d'Espinose - IJM
\///\/// J A C Q U E S | 2 place Jussieu - 75251 Paris Cedex 05
_///\///\_ M O N O D | m@il : email@hidden
__/\///\__ Service Informatique | WWW :
http://www.ijm.jussieu.fr/