From 990113f3a0285f3ea2fdb590f61e835bf41ba1dc Mon Sep 17 00:00:00 2001
From: Ian Lance Taylor
- A flag definition (via Bool
, BoolVar
, Int
, IntVar
, etc.) will panic if Set
has already been called on a flag with the same name.
-
- This change is intended to detect cases where changes in initialization order cause flag operations to occur in a different order than expected. In many cases the fix to this problem is to introduce a explicit package dependence to correctly order the definition before any Set
operations.
+ A flag definition
+ (via Bool
,
+ BoolVar
,
+ Int
,
+ IntVar
, etc.)
+ will panic if Set
has
+ already been called on a flag with the same name. This change is
+ intended to detect cases where changes in
+ initialization order cause flag operations to occur in a
+ different order than expected. In many cases the fix to this
+ problem is to introduce a explicit package dependence to
+ correctly order the definition before any
+ Set
operations.