Skip to content

checkbounds doesn't obey API for strings #24840

@StefanKarpinski

Description

@StefanKarpinski

The documentation for checkbounds says that it returns true if an index (or indices) are in bounds:

checkbounds(Bool, A, I...)

Return true if the specified indices I are in bounds for the given array A. Subtypes of AbstractArray should specialize this method if they need to provide custom bounds checking behaviors; however, in many cases one can rely on A's indices and checkindex.

However, the methods seem to variously return nothing or throw an error, return true or throw an error and maybe somewhere there's a method that actually does what the docs say.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions