BUG: AppleScript compilation problems
BUG: AppleScript compilation problems
- Subject: BUG: AppleScript compilation problems
- From: Steven Angier <email@hidden>
- Date: Fri, 18 Apr 2003 11:03:14 +1000
Here are a couple of bugs involving the compiling of comments in
AppleScript:
1. A block comment can't contain an odd number of double-quote characters:
(*
"
*)
--> compilation error
I can understand how this could happen because, when parsing source code,
something has to take precedence. In the previous case, a literal string
takes precedence over a block comment, though in the next case a single-line
comment takes precedence over a literal string:
--"
--> compiles OK
2. A single-line comment containing a literal line-feed character (ASCII
number 10) will not compile:
a. Compile the following line:
"\n"
b. then comment the line out ("--") and recompile.
--> compilation error
Steven Angier
Macscript.com
_______________________________________________
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.