Skip to content
Tcl Source Code Changes To end-offset Object Type
Login

Changes To end-offset Object Type

Changes to "end-offset Object Type" between 2014-09-10 23:26:02 and 2014-09-10 23:39:58

︙
14
15
16
17
18
19
20












14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32







+
+
+
+
+
+
+
+
+
+
+
+
  *  [string Object Type] 

<h1>Directly Depends On Private Interface of</h1>
  *  [Parsing and Evaluation]
  *  [Numbers]

<h1>Discussion</h1>

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

It operates on numbers in the int range.  When Tcl lists and string are allowed to 
have length greater than <b>INT_MAX</b>, 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.