parsing comments in scripts
Dar Scott
dsc at swcp.com
Mon Dec 13 00:38:41 EST 2004
On Dec 12, 2004, at 6:22 PM, J. Landman Gay wrote:
> I see the point people are making, but I'd sure miss the current
> behavior if it changed. The ability to comment out an entire handler
> by commenting the first line has been in xtalk for 18 years. I have
> become dependent on it.
As Alex pointed out, it is really only an illusion for Transcript. It
doesn't work.
As for Hypertalk, my copy of "Hypercard Script Language Guide: The
HyperTalk Language" says "Statements always appear in handlers in a
script. Any part of a statement following HyperTalk's double-hyphen
comment character (--) is ignored by HyperCard." I read this as saying
that the ability was not intended to be part of HyperCard.
I am curious if others use the technique of commenting out a handler by
commenting out the first line. Maybe there is a way to rescue this
kind of thing in a clean way.
Dar
****************************************
Dar Scott Consulting
http://www.swcp.com/dsc/
Programming Services
****************************************
More information about the use-livecode
mailing list