Opened 9 years ago

Closed 9 years ago

#216 closed enhancement (fixed)

consider `begin` variant with toplevel semantics that can be used locally

Reported by: felix winkelmann Owned by: felix winkelmann
Priority: not urgent at all Milestone:
Component: core libraries Version: 4.5.x
Keywords: toplevel-begin Cc:
Estimated difficulty:

Description

(##core#toplevel-begin BODY ...): like begin, but do not canonicalize the BODY.

This allows wrapping toplevel code with a procedure, for example:

(define (toplevel)
  (##core#toplevel-begin
    (define a 1)
    ...))

...

(toplevel)       ; initialize
a

Change History (1)

comment:1 Changed 9 years ago by felix winkelmann

Resolution: fixed
Status: newclosed

aded in 4722762d (experimental).

Note: See TracTickets for help on using tickets.