Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1002423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:49:49+00:00 2026-05-16T07:49:49+00:00

Please, could someone explain me why "make-array" has no effect on plant1? (LET (plant1)

  • 0

Please, could someone explain me why "make-array" has no effect on plant1?

(LET (plant1) ((setq plant1 (make-array ‘(4 4))) (print plant1) (setf (AREF PLANT1 0 0) 1)))

NIL
Error: Attempt to do an array operation on NIL which is not an array.
[condition type: TYPE-ERROR]

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T07:49:49+00:00Added an answer on May 16, 2026 at 7:49 am
    (LET (plant1) ((setq plant1 (make-array '(4 4))) (print plant1) (setf (AREF PLANT1 0 0) 1)))
    

    First rule: format your code.

    (LET (plant1)
      ((setq plant1 (make-array '(4 4)))
       (print plant1)
       (setf (AREF PLANT1 0 0) 1)))
    

    There are too many parentheses. The syntax of let has a body of code, which is a sequence of forms. You have parentheses around the sequence, which is wrong. Read the Common Lisp HyperSpec entry for LET. It mentions the syntax.

    Use:

    (LET (plant1)
       (setq plant1 (make-array '(4 4)))
       (print plant1)
       (setf (AREF PLANT1 0 0) 1))
    

    Which is the same as:

    (LET ((plant1 (make-array '(4 4))))
       (print plant1)
       (setf (AREF PLANT1 0 0) 1))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could someone please explain the best way to connect to an Interbase 7.1 database
Could someone please explain? I couldn't find anything on the internet, everything talks about
Could someone simply explain the 3 phases in the Flash Event framework, please? By
Please could someone explain me what's the difference between public and published class members
Could someone please explain to me why recursive-descent parsers can't work with a grammar
Could someone please explain when would I want to use delegation instead of inheritance?
could someone please explain why the following code is throwing an error? // JavaScript
Could someone please explain owner/group/public permissions on files and directories in a web environment.
Could someone please explain to me how to draw a string using UIStringDrawing instead
Could someone please explain to me what an un/managed DLL is? And what is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.