Is the following behavior defined by the standard or implementation specific?
- From: Jason Nielsen <jdn@xxxxxxxxx>
- Date: Sat, 28 Jul 2007 19:44:05 GMT
I was wondering if the behavior of the following two (very simple) programs is defined by the standard or is implementation specific. In SBCL using disassemble they seem to produce identical code but my quick perusal of the hyperspec didn't enlighten me. Thanks.
(declaim (ftype (function (double-float double-float) double-float) sss))
(defun sss (x y) (+ x y))
(defun bbb (x y)
(declare (type double-float x y))
(the double-float (+ x y)))
.
- Follow-Ups:
- Re: Is the following behavior defined by the standard or implementation specific?
- From: Thomas F. Burdick
- Re: Is the following behavior defined by the standard or implementation specific?
- From: adejneka
- Re: Is the following behavior defined by the standard or implementation specific?
- From: Kent M Pitman
- Re: Is the following behavior defined by the standard or implementation specific?
- Prev by Date: Re: Questions about CLOS
- Next by Date: Re: Questions about CLOS
- Previous by thread: Questions about CLOS
- Next by thread: Re: Is the following behavior defined by the standard or implementation specific?
- Index(es):
Relevant Pages
|