cacheEnable


Build in function to re-enable binary number caching for a variable.

cacheEnable(var)
cacheEnable(%varContainingNameOfVar%)

Parameters

Parameter

Description

var

An unquoted variable reference.

Return Value

Not used.

Remarks

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.

Related

AutoHotkey.dll, ahkdll, ahktextdll, ahkReady, addFile, addScript, ahkExec, ahkLabel, ahkFunction, ahkPostFunction, ahkassign, ahkgetvar, ahkTerminate, ahkReload, ahkFindFunc, ahkFindLabel, ahkPause, ahkExecuteLine, Alias, FindFunc, FindLabel, getTokenValue, getVar, Static, AutoHotkeyMini, DynaCall, CriticalSection, CriticalObject, MemoryLoadLibrary, ResourceLoadLibrary, MemoryGetProcAddress, MemoryFreeLibrary, Other Changes

Example

; None.