• 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: Inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance


  • Subject: Re: Inheritance
  • From: "John W. Baxter" <email@hidden>
  • Date: Fri, 23 Jan 2004 13:20:26 -0800

On 1/22/2004 17:07, "Wallace, William" <email@hidden>
wrote:

> Emmanuel pointed out that I had the wrong definition for the error, but it
> didn't really help me understand what was going on there. In this case it
> seemed that a script object could not set the value of a global variable
> unless it was both declared as global AND initialized to an arbitrary value in
> the top level of the main script. You touch on this in your example 21, but
> I'd like to understand the logic behind this behavior better.

The global doesn't exist until its value is set. If it is only declared,
AppleScript knows it's (going to be) a global, but can't find it, and is
unwilling to create it merely because the script object wants to set it to
something.

--John (I think) Baxter
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Inheritance
  • Next by Date: Re: Inheritance
  • Previous by thread: Re: Inheritance
  • Next by thread: Re: Inheritance
  • Index(es):
    • Date
    • Thread