Functions Index :: A :: ArrayGetValueResetDefaultHandler

[<< up one level]

Module:

array :: core

Definition:

ArrayGetValueResetDefaultHandler()

Description:

Resets the array value-retrieve handler function to the default AVSLib handler by assigning it to the ArrayGetValueHandler global variable.

Returns the previous value of the variable.

Note that this is a global setting affecting immediately all subsequent operations on arrays.

Examples:

function my_array_get_handler(...) {...}

...

oldhandler = ArrayGetValueRegisterNewHandler("my_array_get_handler")

# perform your custom array operations here

...

# if afterwards you want the default behavior, reset the handler

dummy = ArrayGetValueResetDefaultHandler()

 

[<< top]

  $notes