Skip to content
Snippets Groups Projects
Commit 0939bea0 authored by gerd's avatar gerd
Browse files

Apply type declarations to special variables. The example

	(declaim (optimize (speed 3) (debug 0) (safety 0)))
        (defparameter x 10)
        (defun df-square (x)
        (declare (type double-float x))
          (* x x))

	used to print a long list of optimization notes because the
	double-float declaration for X was effectively swept under the
	carpet.  From Alexey Dejneka in SBCL.

	* src/compiler/ir1tran.lisp (process-type-declaration):
	Apply type declaration to special variable bindings as well.
parent df209524
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment