cacheEnable

Re-enables binary number caching for a variable.

cacheEnable(var)
cacheEnable(%varContainingNameOfVar%)

Parameters

var An unquoted variable reference.

Remarks

code from Lexikos, for compatibility with his lowlevel functions.

In AutoHotkey v1.0.48, binary numbers are cached in variables to avoid conversions to/from strings. However, taking the address of a variable (e.g. &var) marks that variable as uncacheable because it allows the user to read/write its contents in unconventional ways. This function may be used to re-enable binary number caching; however, any address previously taken may become invalid or out-of-sync with the actual contents of the variable.

If var is a ByRef parameter, caching is re-enabled for the underlying variable.