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

Re: Any comments?


  • Subject: Re: Any comments?
  • From: Christopher Nebel <email@hidden>
  • Date: Sat, 3 May 2003 14:56:29 -0700

On Friday, May 2, 2003, at 08:40 PM, Deivy Petrescu wrote:

I see the reason now, and the script is partially right but I am 100% wrong.
It sees (*) as (* or beginning of a comment, thus,
(*)
this is fine because there is a beginning of the comment is above and the end is below,
right here -> *)

(*
However, this does not work , because the beginning of the comment is above, and it is below
right here (*) another beginning of comment
*) -> closing one comment
closing the other ->*)

It is strange that (* takes precedence over *) after a *). :)

It's not strange in the slightest. AppleScript 1.x allows you to nest (* *)-style comments. Like every other computer language, it matches tokens as soon as they can be determined to not be part of something larger. Therefore, as soon as it sees "(*" it says "aha! open comment!" The fact that it's followed by a close parenthesis is irrelevant.


--Chris Nebel
Apple Development Tools
_______________________________________________
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.

References: 
 >Re: Any comments? (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Dialog Icons
  • Next by Date: Re: mac to unix path names
  • Previous by thread: Re: Any comments?
  • Next by thread: Re: Error: Stack overflow
  • Index(es):
    • Date
    • Thread