[ sisc-Bugs-1769860 ] Unquoted parameter objects in eval get applied twice

"SourceForge.net" <[email protected]> Wed, 08 Aug 2007 01:56:33 -0700
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
Bugs item #1769860, was opened at 2007-08-08 10:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1769860&group_id=23735

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Friedrich Delgado Friedrichs (taupan)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unquoted parameter objects in eval get applied twice

Initial Comment:
Yet another bug in connection with eval...


SISC (1.16.6)
#;> (define env (scheme-report-environment 5))
#;> (define foo (make-parameter 'bar))
#;> (eval `',foo  env)
#<parameter>
; looks good so far?
#;> (eval `(',foo)  env)
Error: attempt to apply non-procedure 'bar'.

;; the unquoted procedure gets applied twice?

;; Here's a workaround:

#;> (eval `(define  (foo) ,foo) env)
#;> (parameterize ((foo 'goo)) (eval '((foo)) env))
goo

;; Ugly, but works...

I'm told that using literal procedures in quasiquoted lists is heavily unportable, but sisc allows it, and it's the best solution to use parameter objects for a particular problem that I needed to solve.

As an aside, I hope to find some time later to research integrating my code with the Java API for the compiler/analyzer so I won't have to use eval that heavily any more.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1769860&group_id=23735

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/