_vlax-safearray-mode


(_vlax-safearray-mode  T/NIL)

enables or disables "Lisp Optimiser" features, which analyses (defun) code blocks at load-time to optimise inefficient code to be more efficient (i.e. by combining statements into efficient built-in VLE functions)

Arguments

T/NIL  
T allows (vlax-safearray->list) to accept an empty SafeArray, returning NIL;
NIL forces (vlax-safearray->list) to provide AutoLISP compatible behaviour, triggering an error for an empty SafeArray (default behaviour for (vlax-safearray->list) function) 

Return

T / NIL indicating the effective status

Example

(_vlax-safearray-mode T)    for an empty SafeArray, NIL is returned by (vlax-safearray->list)
(_vlax-safearray-mode NIL) an empty SafeArray triggers an error by (vlax-safearray->list), AutoLISP compatible behaviour (default behaviour)

Alias


Remarks

safe usage :
(if _vlax-safearray-mode (_vlax-safearray-mode T))
or
(if _vlax-safearray-mode (_vlax-safearray-mode NIL))



©  Bricsys NV. All rights reserved.