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 6005949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:28:14+00:00 2026-05-23T01:28:14+00:00

Can you see what is wrong with this: (define (box d x1 y1 x2

  • 0

Can you see what is wrong with this:

(define (box d x1 y1 x2 y2)  (
                              (graphics-draw-line d x1 y1 x1 y2)
                              (graphics-draw-line d x1 y2 x2 y2)
                              (graphics-draw-line d x2 y2 x2 y1)
                              (graphics-draw-line d x2 y1 x1 y1) ))

When I call it like this:

( begin 
     (define w (make-graphics-device 'x))
     (box  w .10 .10 .20 .20) )

I get an errer:

;The object #!unspecific is not applicable.
;To continue, call RESTART with an option number:
; (RESTART 2) => Specify a procedure to use in its place.
; (RESTART 1) => Return to read-eval-print level 1.

2 error>

This works:

(begin
    (define w (make-graphics-device 'x))
    (graphics-draw-line w .1 .1 .1 .2)
    (graphics-draw-line w .1 .2 .2 .2)
    (graphics-draw-line w .2 .2 .2 .1)
    (graphics-draw-line w .2 .1 .1 .1) )

I can’t see the difference!

  • 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-23T01:28:14+00:00Added an answer on May 23, 2026 at 1:28 am

    Don’t just group expressions with ()s — that will try to use the result of the first as a function, but the value is #!unspecific — definitely not a function.

    Use this:

    (define (box d x1 y1 x2 y2)
      (graphics-draw-line d x1 y1 x1 y2)
      (graphics-draw-line d x1 y2 x2 y2)
      (graphics-draw-line d x2 y2 x2 y1)
      (graphics-draw-line d x2 y1 x1 y1))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone see anything wrong with this login script: public function login($username, $pass, $remember)
I believe I've set this up correctly. Can somebody see anything wrong with this
I'm at my wit's end with this. Can anyone see anything wrong with this
Can anybody see what is wrong with this code. it does not show up
I just can't see what's wrong with this code.. it seems to be the
My Get confirm isn't triggering the query? Can anyone see what I'm doing wrong?
I can't see what I'm doing wrong. I think it might be one of
I can't see where I'm going wrong. I've tried everything I could think of,
Probably I do something wrong but I can't see the point of it ....
This is my code: (define p (read(open-input-file starbucks4.sxml))) (define get-artifacts (lambda (l) (member (list

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.