TIP 615: string is index

Login
Bounty program for improvements to Tcl and certain Tcl packages.
Author:         Jan Nijtmans <[email protected]>
State:          Draft
Type:           Project
Vote:           Pending
Tcl-Version:    8.7
Tcl-Branch:     tip-615

Abstract

This TIP proposes a new command "string is index". It returns 1 if the provided value is a valid index (such as 15 or end-2), 0 otherwise. See also TIP #502.

Also, it prepares the way to handle the empty string as allowed index value.

Specification

TODO

Implementation

Implementation is in Tcl branch "tip-615"

Compatibility

This is 100% upwards compatible with Tcl 8.6.

Copyright

This document has been placed in the public domain.