Skip to content
Tcl Source Code Update of ”end-offset Object Type”
Login

Update of ”end-offset Object Type”

Overview

Artifact ID: a1377ba230b54d9ee78163f0a439dcf81a025e45
Page Name:end-offset Object Type
Date: 2014-09-11 15:47:30
Original User: dgp
Parent: e37cdedd8f2d2e1f31c27dfbe37ce1ac79e457f5 (diff)
Content

Source Files

Public Interface

Private Interface

Directly Depends On Public Interface

Directly Depends On Private Interface of

Discussion

This is the parser for Tcl values that indicate a position in a Tcl list or string. Recognizes the format (end|integer)((+/-)integer)?

It operates on numbers in the int range. When Tcl lists and string are allowed to have length greater than INT_MAX, these routines will require an interface change.

The parser as written favors code re-use and clarity over absolute performance seeking.

It's difficult to imagine that the *M macro form is actually worth the trouble. As is, it only operates at all on 32-bit systems.