Jump to content
  • Advertisement
Sign in to follow this  
pradeeppa

Scheme Scripting language

This topic is 4120 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi , I have written a code in Scheme which has no syntax errors ( i used DrScheme to test it). I have created arrays using ' vector-set! ' and accessed the array elements using ' vector-ref ' commands... but the problem is that i'm not able to display it on screen using ' display ' command. Can you help me out? If possible can you send me the correct syntax of displaying them. Thanking You Pradeep

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Quote:


I have written a code in Scheme which has no syntax errors ( i used DrScheme to test it). I have created arrays using
' vector-set! ' and accessed the array elements using ' vector-ref ' commands... but the problem is that i'm not able to display it on screen using
' display ' command. Can you help me out?


I assume you want to display the vector graphically.

The display command won't help you here: you want to initialize a drawing window and draw the line representing your vector in that wndow. This means you'll need a windowing and graphics library.

DrScheme comes with the MrEd library, which allows you to do just this. Here's the documentation:

http://download.plt-scheme.org/doc/mred/

Also, I'd recommend posting this either in General Programming or the SICP study group forum: it isn't really in the scope of this forum.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!