Function Entry: VL-EXIT-WITH-VALUE

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VL-EXIT-WITH-VALUE

Name

vl-exit-with-value

Class

Namespace/error-bridge function

Syntax

(vl-exit-with-value value)

Description

Returns a value to the function that invoked the *error* handler from another namespace.

Return Values

Transfers value to the calling namespace.

Side Effects

Transfers control across namespace boundaries.

Arguments and Values

  • value: any AutoLISP value accepted by Autodesk for namespace return transfer, including integer, real, string, list, file, entity name, T, or nil

Notes

  • Autodesk documents this function as valid only in the context of a VLX application's *error* handler.
  • Autodesk documents that pending instructions are flushed when control transfers back to the calling namespace.
  • Autodesk documents the function as part of separate-namespace VLX error handling.

Availability

  • AutoCAD 2026: documented (per Autodesk reference page).
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.

Source Notes

clautolisp

clautolisp loads no VLX, so every call is outside a separate-namespace VLX. There, measured on AutoCAD 2022 and BricsCAD V25 / V26 (control-flow probe, 2026-10-22/23), vl-exit-with-value does NOT transfer value: it is an AutoLISP error without a message, exactly like vl-exit-with-error – vl-catch-all-apply returns a catch-all error object (message nil on AutoCAD, "" on BricsCAD). clautolisp does the same, per dialect. (Before 2.3.28 it escaped to the host Lisp's debugger; from 2.3.28 to 2.3.37 it returned value: issue vl-exit-outside-vlx-caught-diverges.)