File: module-static-eval-compiled.scm

package info (click to toggle)
chicken 5.3.0-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 32,892 kB
  • sloc: ansic: 580,083; lisp: 71,987; tcl: 1,445; sh: 588; makefile: 60
file content (11 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
;;;; test eval in statically compiled code

(declare (uses lolevel))

(eval '(import (chicken memory representation)))
(assert (eval '(= 1 (block-ref #(1) 0))))
(module static (foo)
  (import scheme (chicken memory representation))
  (define (foo x) (block-ref x 0)))
(eval '(import static))
(assert (eval '(= 99 (foo #(99)))))