Opened 6 years ago

Closed 5 years ago

#161 closed defect (fixed)

module argument to eval

Reported by: alexshinn Owned by: cowan
Priority: major Milestone:
Component: WG1 - Core Keywords:


It would be useful to allow modules as an argument to eval
in addition to environments. This could be done with a special
syntax, or just the module name as a list.

Change History (5)

comment:1 Changed 6 years ago by cowan

R6RS has a procedure environment which accepts multiple arguments which look like import specs, and returns an environment suitable for passing to eval that contains just the imported names. So (environment) is equivalent to R5RS (empty-environment), (environment '(scheme base)) returns a base environment, and so on. That makes a lot of sense to me.

comment:2 Changed 6 years ago by arcfide

I also think that the R6RS environment procedure is extremely useful.

comment:3 Changed 6 years ago by alexshinn

  • Status changed from new to decided

We voted to add the R6RS procedure.

comment:4 Changed 6 years ago by cowan

  • Owner changed from alexshinn to cowan
  • Status changed from decided to writing

comment:5 Changed 5 years ago by cowan

  • Resolution set to fixed
  • Status changed from writing to closed
Note: See TracTickets for help on using tickets.