User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Legacy and Other Languages section within the Software Development category of DaniWeb, a massive community of 426,019 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,676 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Legacy and Other Languages advertiser: Programming Forums
Views: 751 | Replies: 3
Reply
Join Date: Jul 2008
Posts: 2
Reputation: datta08 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
datta08 datta08 is offline Offline
Newbie Poster

DrScheme

  #1  
Jul 22nd, 2008
I am trying to execute the code (append '(a b) '(c d)) in drscheme using lazyscheme and i am getting the following output: (a . #<promise:...cts/lazy/lazy.ss:453:38>). What is the problem? Thanks.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Location: Cambridge, MA
Posts: 269
Reputation: sarehu is on a distinguished road 
Rep Power: 2
Solved Threads: 22
sarehu's Avatar
sarehu sarehu is offline Offline
Posting Whiz in Training

Re: DrScheme

  #2  
Jul 23rd, 2008
What makes you think there's a problem?
Reply With Quote  
Join Date: Jul 2008
Posts: 2
Reputation: datta08 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
datta08 datta08 is offline Offline
Newbie Poster

Re: DrScheme

  #3  
Jul 23rd, 2008
Originally Posted by sarehu View Post
What makes you think there's a problem?
Well...it should append the lists together which is not happening. Also, I tried append on an atom and a list and I am getting error messages.
Reply With Quote  
Join Date: Jul 2008
Location: Cambridge, MA
Posts: 1
Reputation: elibarzilay is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
elibarzilay's Avatar
elibarzilay elibarzilay is offline Offline
Newbie Poster

Re: DrScheme

  #4  
Jul 23rd, 2008
You're using the Lazy Scheme language
which is not really evaluating the
expression until the value is needed. This
should actually happen when the value is
printed, but that aspect of the lazy language
is currently broken and will be fixed in the
near future. For now, you can manually
force the result by using (!! (append ...)).

It is probably better to ask such questions
on the PLT Scheme mailing list, see
http://plt-scheme.org/maillist/ for details.
Eli Barzilay
((lambda (x) (x x)) (lambda (x) (x x)))
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Legacy and Other Languages Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Legacy and Other Languages Forum

All times are GMT -4. The time now is 1:30 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC