• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: hash arrays and other mysteries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hash arrays and other mysteries


  • Subject: Re: hash arrays and other mysteries
  • From: Timothy Bates <email@hidden>
  • Date: Mon, 22 Oct 2001 17:45:18 +1000

On 22/10/01 11:50 AM, "Paul Skinner" <email@hidden> wrote:

> on 10/21/01 8:53 PM, Timothy Bates wrote:
>
>> On 21/10/01 11:34 PM, "Jason W. Bruce" <email@hidden> wrote:
>>> What's the difference between an import statement as implemented in other
>>> languages and AppleScript's load script command -- aside from the fact that
>>> load script is a scripting addition, albeit a standard additions scripting
>>> addition?
>>> Jason Bruce
>>
>> Import (would) add new handlers to your script object. Load script add new
>> objects to your script object.
>>
> SNIP
>> Tim
>
> Then what you want is available in vanilla AppleScript. The parent property
> adds handlers from the parent script into your child script. No tell object
> machinations required.
Almost. You can't say

Set parent to string.lib
Set parent to array.lib
Set parent to graph.lib
Set parent to UI.lib
Set parent to game.lib

We humans have 2 parents, but scripts have only 1 and noone has 5

But you can say

include string.lib
include array.lib
include graph.lib
include UI.lib
include game.lib

So include is good for what it does. Which makes it good. If none ever used
it, it would hurt noone. If someone uses it (they would) if is helping

Tim


References: 
 >Re: hash arrays and other mysteries (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: RE: copy & set statments
  • Next by Date: Internal Table Overflow
  • Previous by thread: Re: hash arrays and other mysteries
  • Next by thread: FW: hash arrays and other mysteries
  • Index(es):
    • Date
    • Thread