From ... From: Erik Naggum Subject: Re: type: (or something nil) Date: 1998/03/07 Message-ID: <3098218620480005@naggum.no>#1/1 X-Deja-AN: 331561955 References: <3098199298906753@naggum.no> <4nen0fsb2y.fsf@rtp.ericsson.se> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * Raymond Toy | Depends on the compiler and the code. This bit of code: | | (defun tst (x) | (declare (type (or single-float null) x) (optimize (speed 3))) | (if x (sin x))) | | can call the C version of sin because the compiler knows that by then, | x must be a single-float. but does any particular compiler do this? (incidentally, C's sin is defined for double-floats.) #:Erik -- God grant me serenity to accept the code I cannot change, courage to change the code I can, and wisdom to know the difference.