Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • cmucl cmucl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 56
    • Issues 56
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cmucl
  • cmuclcmucl
  • Issues
  • #4
Closed
Open
Issue created May 16, 2015 by Mark Cox@mcox

ELT on lists does not signal an error when given an invalid index.

The accessor ELT does not signal an error when given an invalid index.

(let ((f (compile nil '(lambda (list)
                         (declare (type list list)
                                  (optimize (speed 1) (safety 1) (compilation-speed 1) (space 1) (debug 1)))
                           (elt list 3)))))
     (funcall f (list 0 1 2)))
=> nil

An error is signalled when performing one of the following:

  1. SAFETY is changed to 3.
  2. The type LIST is changed to SEQUENCE.

Thanks Mark

Assignee
Assign to
Time tracking