(define (initialize-package!)
(set! entry-advice-population (make-population))
(set! exit-advice-population (make-population))
- (set! advice-continuation (make-parameter #f))
- (set! the-arguments (make-parameter #f))
- (set! the-procedure (make-parameter #f))
- (set! the-result (make-parameter #f)))
+ (set! advice-continuation (make-unsettable-parameter #f))
+ (set! the-arguments (make-unsettable-parameter #f))
+ (set! the-procedure (make-unsettable-parameter #f))
+ (set! the-result (make-unsettable-parameter #f))
+ unspecific)
(define the-arguments)
(define the-procedure)
(stack-frame/reductions (dstate/subproblem dstate)))
\f
(define (initialize-package!)
- (set! *dstate* (make-parameter 'UNBOUND))
- (set! *port* (make-parameter 'UNBOUND))
+ (set! *dstate* (make-unsettable-parameter 'UNBOUND))
+ (set! *port* (make-unsettable-parameter 'UNBOUND))
(set!
command-set
(make-command-set
(define *expand-directory-prefixes?*)
(define (initialize-package!)
- (set! *expand-directory-prefixes?* (make-parameter true)))
+ (set! *expand-directory-prefixes?* (make-unsettable-parameter #t))
+ unspecific)
(define (directory-read pattern #!optional sort?)
(if (if (default-object? sort?) true sort?)
(define (initialize-dragon4!)
(set! param:flonum-unparser-cutoff
- (make-parameter 'NORMAL
- (lambda (cutoff)
- (guarantee-cutoff-spec cutoff)
- cutoff)))
+ (make-settable-parameter 'NORMAL
+ (lambda (cutoff)
+ (guarantee-cutoff-spec cutoff)
+ cutoff)))
(set! expt-radix
(let ((v (make-initialized-vector 310 (lambda (i) (expt 10 i)))))
(lambda (base exponent)
(memq condition-type:error (%condition-type/generalizations type)))
\f
(define (initialize-package!)
- (set! param:bound-restarts (make-parameter '()))
- (set! static-handler-frames (make-parameter '()))
- (set! dynamic-handler-frames (make-parameter '()))
- (set! break-on-signals-types (make-parameter '()))
+ (set! param:bound-restarts (make-unsettable-parameter '()))
+ (set! static-handler-frames (make-settable-parameter '()))
+ (set! dynamic-handler-frames (make-unsettable-parameter '()))
+ (set! break-on-signals-types (make-settable-parameter '()))
(set! param:standard-error-hook (make-settable-parameter #f))
(set! param:standard-warning-hook (make-settable-parameter #f))
(set! hook/invoke-condition-handler default/invoke-condition-handler)
(,lambda-tag:internal-lexpr . LAMBDA)
(,lambda-tag:let . LET)
(,lambda-tag:fluid-let . FLUID-LET)))
- (set! directory-rewriting-rules (make-parameter '()))
+ (set! directory-rewriting-rules (make-settable-parameter '()))
(set! wrappers-with-memoized-debugging-info (make-serial-population))
(add-secondary-gc-daemon! discard-debugging-info!))
(define *expand-directory-prefixes?*)
(define (initialize-package!)
- (set! *expand-directory-prefixes?* (make-parameter #t)))
+ (set! *expand-directory-prefixes?* (make-unsettable-parameter #t))
+ unspecific)
(define (directory-read pattern #!optional sort? full?)
(let ((sort? (if (default-object? sort?) #t sort?))
(define *initial-options-file* #f)
(define (initialize-package!)
- (set! *options* (make-parameter '()))
- (set! *parent* (make-parameter initial-load-options)))
+ (set! *options* (make-settable-parameter '()))
+ (set! *parent* (make-settable-parameter initial-load-options)))
\f
(define (dummy-option-loader)
unspecific)
(define *expand-directory-prefixes?*)
(define (initialize-package!)
- (set! *expand-directory-prefixes?* (make-parameter #t)))
+ (set! *expand-directory-prefixes?* (make-unsettable-parameter #t))
+ unspecific)
(define (directory-read pattern #!optional sort?)
(if (if (default-object? sort?) #t sort?)
(set! param:default-pathname-defaults (make-param:default-pathname-defaults))
(param:default-pathname-defaults (make-pathname local-host #f #f #f #f #f))
(set! library-directory-path
- (make-parameter
+ (make-unsettable-parameter
(map pathname-as-directory
(vector->list ((ucode-primitive microcode-library-path 0))))))
unspecific)
(set! param:pp-save-vertical-space? (make-settable-parameter #f))
(set! param:pp-uninterned-symbols-by-name? (make-settable-parameter #t))
- (set! x-size (make-parameter #f))
- (set! output-port (make-parameter #f))
+ (set! x-size (make-unsettable-parameter #f))
+ (set! output-port (make-unsettable-parameter #f))
(set! pp-description (make-generic-procedure 1 'PP-DESCRIPTION))
(set-generic-procedure-default-generator! pp-description
(lambda (generic tags)
(set! print-let-expression (special-printer kernel/print-let-expression))
(set! print-case-expression (special-printer kernel/print-case-expression))
(set! code-dispatch-list
- (make-parameter
+ (make-unsettable-parameter
`((COND . ,forced-indentation)
(CASE . ,print-case-expression)
(IF . ,forced-indentation)
(DEFINE-INTEGRABLE . ,print-procedure)
(LAMBDA . ,print-procedure)
(NAMED-LAMBDA . ,print-procedure))))
- (set! dispatch-list (make-parameter (code-dispatch-list)))
- (set! dispatch-default (make-parameter print-combination))
+ (set! dispatch-list (make-unsettable-parameter (code-dispatch-list)))
+ (set! dispatch-default (make-unsettable-parameter print-combination))
(set! cocked-object (generate-uninterned-symbol))
unspecific)
\f
(print-node node column depth))))
(define (print-code-node node column depth)
- (parameterize* (list (cons dispatch-list code-dispatch-list)
+ (parameterize* (list (cons dispatch-list (code-dispatch-list))
(cons dispatch-default print-combination))
(lambda ()
(print-node node column depth))))
(object-new-type primitive-object-new-type 2))
(define (initialize-package!)
- (set! *copy-constants?* (make-parameter 'UNBOUND))
- (set! *object-copies* (make-parameter 'UNBOUND))
+ (set! *copy-constants?* (make-unsettable-parameter 'UNBOUND))
+ (set! *object-copies* (make-unsettable-parameter 'UNBOUND))
(set! copier/scode-walker
(make-scode-walker
copy-constant
(define *within-restore-window?*)
(define (initialize-package!)
- (set! *within-restore-window?* (make-parameter #f)))
+ (set! *within-restore-window?* (make-unsettable-parameter #f)))
\f
(define (disk-save filename #!optional id)
(let ((filename (->namestring (merge-pathnames filename)))
(define event-return-address 'UNINITIALIZED)
(define (initialize-package!)
- (set! stack-sampling-return-address (make-parameter #f))
+ (set! stack-sampling-return-address (make-unsettable-parameter #f))
(let ((blocked? (block-thread-events)))
(signal-thread-event (current-thread)
(lambda ()
(define name-counters)
(define (initialize-package!)
- (set! name-counters (make-parameter unspecific)))
+ (set! name-counters (make-unsettable-parameter unspecific))
+ unspecific)
\f
;;;; Optimizer
(define repl-port-type)
(define (initialize-package!)
- (set! *top-level-restart* (make-parameter unspecific))
- (set! *sldb-state* (make-parameter #f))
- (set! *index* (make-parameter unspecific))
- (set! *buffer-pstring* (make-parameter unspecific))
+ (set! *top-level-restart* (make-unsettable-parameter unspecific))
+ (set! *sldb-state* (make-unsettable-parameter #f))
+ (set! *index* (make-unsettable-parameter unspecific))
+ (set! *buffer-pstring* (make-unsettable-parameter unspecific))
(set! repl-port-type
(make-port-type
`((WRITE-CHAR
(define *rename-database*)
(define (initialize-package!)
- (set! *rename-database* (make-parameter 'UNBOUND)))
+ (set! *rename-database* (make-unsettable-parameter 'UNBOUND)))
(define-structure (rename-database (constructor initial-rename-database ())
(conc-name rename-database/))
(define (initialize-high!)
;; Called later in the cold load, when more of the runtime is initialized.
- (set! root-continuation-default (make-parameter #f))
+ (set! root-continuation-default (make-unsettable-parameter #f))
(initialize-error-conditions!)
(reset-threads-high!)
(record-start-times! first-running-thread)
(declare (usual-integrations))
\f
(define (initialize-package!)
- (set! substitutions (make-parameter '()))
+ (set! substitutions (make-unsettable-parameter '()))
(set! unsyntaxer/scode-walker
(make-scode-walker unsyntax-constant
`((ACCESS ,unsyntax-ACCESS-object)
(define *expand-directory-prefixes?*)
(define (initialize-package!)
- (set! *expand-directory-prefixes?* (make-parameter true)))
+ (set! *expand-directory-prefixes?* (make-unsettable-parameter #t))
+ unspecific)
(define (directory-read pattern #!optional sort?)
(if (if (default-object? sort?) true sort?)
(define wrapped-notification-port-type)
(define (initialize-package!)
- (set! *notification-depth* (make-parameter 0))
+ (set! *notification-depth* (make-unsettable-parameter 0))
(set! indentation-atom " ")
(set! wrapped-notification-port-type (make-wrapped-notification-port-type))
unspecific)
\ No newline at end of file