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:  runtime Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect behavior
Status:  Fixed Privacy:  Public
Assigned to:  Taylor R. Campbell <riastradh> Originator Name:  Kyle Miller
Originator Email:  -email is unavailable- Open/Closed:  Closed

Add a New Comment (Rich 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



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

Attach Files:

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)

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

    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 bug-mit-scheme@gnu.org
    2010-10-24 riastradh Assigned toNone => riastradh
    2010-10-24 riastradh StatusNone => Ready For Test

    Back to the top

    Powered by Savane 3.5