Log in

View Full Version : How to add comments


troy
20th November 2003, 04:47
I know this is a nubie question but avisynth.org is down. How do I add comments ie deactivate a filter in my avisynth script. If I put a # before my filter then will this deactivate it. will it also deactivate everything up untill another #.

ie is this correct
#

Everything between these two characters is not used and is a comment

#
_____________________________________________________________


or do I just need to put:

# This line only is a comment.

Richard Berg
20th November 2003, 04:54
# This line only is a comment, unless it ends with \

stickboy
20th November 2003, 19:08
I think the way that the line continuation character (\) behaves with comments is rather annoying. It currently is impossible to comment individual parts to statements split across multiple lines. For example, this doesn't work:foo(expr1, # comment about expr1 \
expr2, # comment about expr2 \
expr3) # comment about expr3nor does:foo(expr1, \ # comment about expr1
expr2, \ # comment about expr2
expr3) # comment about expr3nor does:foo(expr1, # comment about expr1
\ expr2, # comment about expr2
\ expr3) # comment about expr3(I don't expect all of those to work, but it would be nice if at least one of them did.)

The current behavior also makes it easy to obfuscate code:Version()
# some really long comment that stretches past the end of the screen.... \
AVISource("foo.avi")