Function Entry: ALLOC
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: ALLOC
Name
alloc
Class
Function
Syntax
(alloc n-alloc)
Arguments and Values
n-alloc: integer; the new segment-allocation size used byexpand. The number controls how many symbols, strings, usubrs, reals, and cons cells are allocated per futureexpandcall.
Description
Sets the segment-allocation size used by the expand function.
Return Values
The previous n-alloc value (an integer).
Side Effects
Updates the AutoLISP allocator's segment-size parameter.
Examples
(alloc 100)returns1000(the previous segment size, on a fresh session with the documented default).
Availability
- AutoCAD 2026: documented.
- BricsCAD V26: presumed compatible (memory-knob behaviour may differ).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [alloc (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-DBC72668-153D-48F4-9C19-87053975A97C.htm)
- Status: documented (Phase 3 body fill).