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

  • Home
  • SEARCH
  • 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 7549879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:04:06+00:00 2026-05-30T10:04:06+00:00

Basically I tried evaluating the function below but keep getting the following error: WARNING

  • 0

Basically I tried evaluating the function below but keep getting the following error:

 WARNING :
MAINDIA is neither declared nor bound,
it will be treated as if it were declared SPECIAL.
WARNING :
SOUT is neither declared nor bound,
it will be treated as if it were declared SPECIAL.
WARNING :
NORT is neither declared nor bound,
it will be treated as if it were declared SPECIAL.
*** - NIL: variable MAINDIA has no value
The following restarts are available:
ABORT          :R1      Abort debug loop
ABORT          :R2      Abort debug loop
ABORT          :R3      Abort debug loop
ABORT          :R4      Abort debug loop
ABORT          :R5      Abort debug loop
ABORT          :R6      Abort debug loop
ABORT          :R7      Abort debug loop
ABORT          :R8      Abort main loop

When I tried copy and paste an example from the internet it works, but when I manually type it into the interpreter it doesn’t work. Also, I am running CLISP from emacs.

Code:

(defun diagonal-mast (sq)
  (let* ((maindia #x8040201008040201)
         (diag (- (* 8 (logand sq 7))
                  (logand sq 56)))
         (nort (logand (- diag)
                       (ash diag -31)))
         (sout (logand diag (ash (- diag) -31))))
    (ash (ash maindia (- sout))
         nort)))

NOte: I am on CLISP 2.48

  • 1 1 Answer
  • 0 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-30T10:04:07+00:00Added an answer on May 30, 2026 at 10:04 am

    In all likelihood, your problem is with emacs, not with the code, because it’s running fine in the commenters’ and my lisps. I’m not on emacs anymore, so it’s possible the following solution is deprecated or entirely false, but if you start Emacs via emacs –debug-init and get an error message, you’ve got some setup issue rather than a code issue. Elsewise, it seems like your lisp implementation is the problem, not your lisp writing. If it’s somehow your lisp implementation, just rebuild and it should be fine. If it’s your setup, i’m pretty sure slimedev has some a pretty exhaustive list of bugs and fixes. Good hunting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried the following: Basically, it should say: If there's no cookie, get lang
I've tried searching for this but it's pretty difficult to put into words. Basically,
I have tried numerous ways to fix this error, but they haven't fix my
I tried this on my own but couldn't get it to work right. Basically
I've tried the below code without success. Basically, I need a way to detect
Title basically says it all. I've tried Googling but return a load of false
I tried to find a solution here but was unable to, basically I have
I tried modifying the second property, but didn't work. Basically I wanna do: datetime.now().second
I tried searching for an answer but lost in questions. Basically I have a
Basically i tried this: var newDiv = $('#parentDiv').append(<div id=\+user_name+\ div class=\user_head\>+</div>); But when I

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.