Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Compiler Removes Remarks in WB Scripts

Keywords:     remarks

Question:

Are remarks like ; also compiled, or does the compiler ignore them?

Sometimes when 64 kb is reached, it would be useful for the compiler to ignore it.

Answer:

Compiler does remove remarks if they are at the beginning of the line.

This is useful. For example, our setup program is 95K uncompiled, and it compiles down to about 58K.

The compiler can ignore single line comments and leading and trailing spaces. But it keep the comments at the end of a line as it is a parsing nightmare, especially with substitution.

The algorithm to remove comments on the end of the line is very difficult.


Article ID:   W12777
Filename:   Compiler Removes Remarks.txt