From c8318b7e07a61e6786249d5e56abd72e4cdc45f4 Mon Sep 17 00:00:00 2001 From: Javier Sancho Date: Thu, 9 Aug 2012 14:21:59 +0200 Subject: [PATCH] Changing things. --- src/utils.scm | 11 +---------- src/views.scm | 6 ++++++ 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/utils.scm b/src/utils.scm index f2b339a..4a27f88 100644 --- a/src/utils.scm +++ b/src/utils.scm @@ -17,8 +17,7 @@ (define-module (gacela utils) #:use-module (ice-9 session) - #:export (use-cache-with - procedure-header)) + #:export (use-cache-with)) ;;; Cache for procedures @@ -32,11 +31,3 @@ (set! res (apply proc param)) (hash-set! cache key res) res)))))) - - -;;; Retrive header definition of a procedure - (define (procedure-header proc) - (let* ((args (procedure-arguments proc)) - (name (procedure-name proc)) - (required (cdar args))) - (cons name required))) diff --git a/src/views.scm b/src/views.scm index 32a7c3c..805a47d 100644 --- a/src/views.scm +++ b/src/views.scm @@ -90,6 +90,12 @@ (mesh 'rotate 0 0 (car params))) mesh) + +;;; Primitives + +(define (basic proc) + ((@ (system vm program) program-lambda-list) proc)) + (define-macro (define-primitives . symbols) (cond ((null? symbols) `#t) -- 2.39.5