bugMIT/GNU Scheme - Bugs: bug #31014, Object reference as operator...

 
 

bug #31014: Object reference as operator expression

Submitted by:  None
Submitted on:  Sat 11 Sep 2010 03:41:29 AM UTC  
 
Category: runtimeSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect behavior
Status: FixedPrivacy: Public
Assigned to: Taylor R. Campbell <riastradh>Originator Name: Kyle Miller
Originator Email: -unavailable-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.

 

Sun 24 Oct 2010 06:21:40 AM UTC, comment #1:

Sorry to take so long to reply. In Git commit 4883bad5afde036fa0b73f75aa3789566a3fb7cb, I have changed #@n to always read as an expression evaluating to the nth hashed object, rather than as the nth hashed object itself. This also fixes other random misbehaviour of #@n:

(list 1 2 3)
;Value 18: (1 2 3)

(pp #@18)
;The object 1 is not applicable.

Taylor R. Campbell <riastradh>
Project MemberIn charge of this item.
Sat 11 Sep 2010 03:41:29 AM UTC, original submission:

The following transcript explains the problem:

1 ]=> (lambda (x) 3)

;Value 11: #[compound-procedure 11]

1 ]=> #[compound-procedure 11]

;Value 11: #[compound-procedure 11]

1 ]=> (#[compound-procedure 11] 2)

;The object #[compound-procedure 11], passed as an argument to make-combination, is not an operator expression.
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.

2 error> ((lambda (x) (x 2)) #[compound-procedure 11])

;Value: 3

Anonymous

 

(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 (Updated the item)
  • -unavailable- added by mhb
  • -unavailable- added by riastradh (Posted a comment)
  • -unavailable- added by None (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 May 2013 11:58:21 PM UTCmhbStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
      Carbon-Copy-=>Added -unavailable-
    Sun 24 Oct 2010 06:32:55 AM UTCriastradhAssigned toNone=>riastradh
    Sun 24 Oct 2010 06:32:54 AM UTCriastradhStatusNone=>Ready For Test

    Back to the top


    Powered by Savane 3.1-cleanup