Re: TWXProxy Script commenting questions
So let's test it...
Code:
# Test Script
# Testing various Rem(s)
# in twx script
:howdy
echo "** This is test of remarks w/ twx.**"
:test1
# ok, pretty tame so far
echo "** Ok, now for a //...**" // This is meant to test the // remark theory
:post // This is the second test of the //
# ok, now for the multi line trial
:multiline
/* just testing a multi line remark
to see if it works at all or if it will
end in some sort of failure...*/
# ok fin
:Dats_All
echo "That'll about do it for this test"
This gets us this:
Loading and compiling script: C:\TWXProx2.04\scripts\_Working\__RemTesting.ts
Citadel command (?=help)
Script compilation error: Operation syntax error, line 8 (__REMTESTING.TS)
Script terminated: C:\TWXProx2.04\scripts\_Working\__RemTesting.ts
So I change line 8 from this:
Code:
echo "** Ok, now for a //...**" // This is meant to test the // remark
To this:
Code:
echo "** Ok, now for a //...**" # // This is meant to test the // remark
Pooh, same result, duplicate error. So now I change line 8 to:
Code:
#echo "** Ok, now for a //...**" // This is meant to test the // remark
Result?
Script compilation error: Operation syntax error, line 9 (__REMTESTING.TS)
Doh! Doesn't care for that // rem at all...
Ok, so I # out line 9..
Error in line 12.
Ok, that's the /* multiline comment. */
So for my testing, on my version of twx..the only rem I can find is the #.