From: Chris Hanson Date: Sat, 5 Jan 2002 05:57:56 +0000 (+0000) Subject: Don't unparse environments specially. X-Git-Tag: 20090517-FFI~2305 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=0f41ac98eae8246bc776ecfbf30213e1541f8fe0;p=mit-scheme.git Don't unparse environments specially. --- diff --git a/v7/src/runtime/unpars.scm b/v7/src/runtime/unpars.scm index 239f62904..1bbfe07e3 100644 --- a/v7/src/runtime/unpars.scm +++ b/v7/src/runtime/unpars.scm @@ -1,8 +1,8 @@ #| -*-Scheme-*- -$Id: unpars.scm,v 14.49 2001/12/19 03:31:25 cph Exp $ +$Id: unpars.scm,v 14.50 2002/01/05 05:57:56 cph Exp $ -Copyright (c) 1988-2001 Massachusetts Institute of Technology +Copyright (c) 1988-2002 Massachusetts Institute of Technology This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -80,7 +80,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA (COMPLEX ,unparse/number) (CONSTANT ,unparse/constant) (ENTITY ,unparse/entity) - (ENVIRONMENT ,unparse/environment) (EXTENDED-PROCEDURE ,unparse/compound-procedure) (FLONUM ,unparse/flonum) (FUTURE ,unparse/future) @@ -528,7 +527,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ((UNQUOTE-SPLICING) ",@") (else false)))) -;;;; Procedures and Environments +;;;; Procedures (define hook/procedure-unparser) @@ -612,15 +611,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ;;;; Miscellaneous -(define (unparse/environment environment) - (let ((print-self - (ignore-errors - (lambda () - (environment-lookup environment ':PRINT-SELF))))) - (if (and (procedure? print-self) (procedure-arity-valid? print-self 0)) - (print-self) - (unparse/default environment)))) - (define (unparse/variable variable) (*unparse-with-brackets 'VARIABLE variable (lambda () (*unparse-object (variable-name variable)))))