Page MenuHomeFeedback Tracker

Silent Compilation error on using #
New, NormalPublic

Description

Using the # operator as the first character in a line of an .sqf script will fail preprocessing silently.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

In a mission environment, create the file test.sqf containing:

[0]
# 0;
  1. Enter the mission
  2. compile preProcessFile "test.sqf" yields {}
  3. compile loadFile "test.sqf", however, succeeds

Event Timeline

Fett_Li created this task.Fri, Apr 2, 6:20 PM
dedmen added a subscriber: dedmen.Thu, Apr 8, 11:04 AM

Alternative would be forced game crash...
I'd rather leave it like this.

"#" operator was not a good idea in the first place