This is an extension/generalisation of the linked idea.
When compiling LotusScript code, Designer should present a list of warnings - things that compile OK and don't prevent code execution, but look dubious. Some examples (adapted from things I've seen in the Delphi IDE):
- Variable declared but never used.
- Sub/Function never called.
- Possible loss of information on type conversion (e.g. if a Long is converted to an Integer).