bugMIT/GNU Scheme - Bugs: bug #21134, (values 'foo) does not return foo

 
 

bug #21134: (values 'foo) does not return foo

Submitted by:  Abdulaziz Ghuloum <aghuloum>
Submitted on:  Sat 22 Sep 2007 07:06:45 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect behavior
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: Closed
Keywords: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 03 Jun 2013 04:11:31 PM UTC, comment #1:

(values 'foo) is not supposed to return 'foo.

Matt Birkholz <mhb>
Project Member
Sat 22 Sep 2007 07:06:45 AM UTC, original submission:

Instead, values returns a closure:

MIT/GNU Scheme running under MacOSX
Image saved on Saturday June 23, 2007 at 8:26:50 PM
Release 7.7.90.+ || Microcode 15.1 || Runtime 15.7

1 ]=> (values 'foo)

;Value 1: #[compiled-closure 1 ("global" #xd) #x5e #x2726de #x4cd298]

A related bug is in call-with-values, when the producer returns a value (without calling values):

1 ]=> (call-with-values (lambda () 1) list)

;The object 1 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.

Aziz,,,

Abdulaziz Ghuloum <aghuloum>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mhb (Posted a comment)
  • -unavailable- added by aghuloum (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 03 Jun 2013 04:11:31 PM UTCmhbStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup