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

 
 

bug #31014: Object reference as operator expression

Submitter:  None
Submitted:  Sat 11 Sep 2010 03:41:29 AM UTC
   
 
Category:  runtime Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect behavior
Status:  Fixed Privacy:  Public
Assigned to:  riastradh Originator Name:  Kyle Miller
Originator Email:  -email is unavailable- Open/Closed:  Closed
Keywords: 
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mhb (Updated the item)
  • -email is unavailable- added by mhb
  • -email is unavailable- added by riastradh (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-05-29 mhb StatusReady For Test Fixed
        Open/ClosedOpen Closed
        Carbon-Copy- Added -email is unavailable-
    2010-10-24 riastradh Assigned toNone riastradh
    2010-10-24 riastradh StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code