Page MenuHomeFeedback Tracker

Silent Compilation error on using #
Closed, ResolvedPublic

Description

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

Details

Severity
Minor
Resolution
Won't Fix
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.Apr 2 2021, 6:20 PM
dedmen added a subscriber: dedmen.Apr 8 2021, 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

dedmen closed this task as Resolved.Apr 15 2021, 10:17 AM
dedmen changed Resolution from Open to Won't Fix.