Newsgroups: comp.lang.scheme,comp.lang.scheme.c
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!zombie.ncsc.mil!news.duke.edu!godot.cc.duq.edu!newsfeed.pitt.edu!uunet!bcstec!bcsaic!janin
From: janin@bcsaic.boeing.com (Adam Janin)
Subject: Interning a symbol in a different environment?
Message-ID: <D5K7s2.E24@bcsaic.boeing.com>
Organization: Boeing Computer Services
Date: Fri, 17 Mar 1995 00:52:48 GMT
Lines: 21
Xref: glinda.oz.cs.cmu.edu comp.lang.scheme:12332 comp.lang.scheme.c:605

I'd like to do the equivilant of:

(define (access foo env) 'bar)

In other words, I'd like to create a NEW binding in env of foo to bar.
The only way I know to do it now is something like:

(eval `(define foo ,bar) env)

which seems wasteful.  Is there any way to do it more efficiently?

	Thanks,

	Adam Janin
	janin@boeing.com

P.S.  I have figured out how to do events in MIT Scheme for Windows.
      If you're interested, drop me a note.

	AJ

