﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2855	Scoping and declaration modifiers combinations	jchd18	Jon	"Static is currently forbidden in combination with Enum and Const but these that can be needed in the real world.
{{{
Dim $a1
Local $a2
Global $a3
Static $a4
Local Static $a5
Global Static $a6
Enum $a7
Dim Enum $a8
Local Enum $a9
Global Enum $a10
;~ Static Enum $a11              ; ==> No variable given for ""Dim"", ""Local"", ""Global"", ""Struct"" or ""Const"" statement.
;~ Local Static Enum $a12        ; ==> No variable given for ""Dim"", ""Local"", ""Global"", ""Struct"" or ""Const"" statement.
;~ Global Static Enum $a13       ; ==> No variable given for ""Dim"", ""Local"", ""Global"", ""Struct"" or ""Const"" statement.
Const $a14 = 0
Dim Const $a15 = 1
Local Const $a16 = 2
Global Const $a17 = 3
;~ Static Const $a18 = 4         ; ==> No variable given for ""Dim"", ""Local"", ""Global"", ""Struct"" or ""Const"" statement.
;~ Local Static Const $a19 = 5   ; ==> No variable given for ""Dim"", ""Local"", ""Global"", ""Struct"" or ""Const"" statement.
;~ Global Static Const $a20 = 6  ; ==> No variable given for ""Dim"", ""Local"", ""Global"", ""Struct"" or ""Const"" statement.
Const Enum $a21
Dim Const Enum $a22
Local Const Enum $a23
Global Const Enum $a24
;~ Static Const Enum $a25        ; ==> No variable given for ""Dim"", ""Local"", ""Global"", ""Struct"" or ""Const"" statement.
;~ Local Static Const Enum $a26	 ; ==> No variable given for ""Dim"", ""Local"", ""Global"", ""Struct"" or ""Const"" statement.
;~ Global Static Const Enum $a27 ; ==> No variable given for ""Dim"", ""Local"", ""Global"", ""Struct"" or ""Const"" statement.
}}}

Static Enum and Static Const (Local or Global) '''are''' useful to allow skipping subsequent lengthy or ""runonce"" initialization (e.g. having side-effects).

<*> Const Enum are harmless redondancies since Enums are constant, so Static Const Enum (Local or Global) should work as well.


BTW what is this ""Struct"" statement mentionned in the error message? (It is also recognized as a keyword in SciTE.)"	Feature Request	assigned		AutoIt		None			
