Re: Any comments?
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.