Re: unboxed structure fields (or class slots)
Martin Simmons <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On Wed, 7 Jan 2026 12:44:48 +0100, Yuri Davidovsky (as work at disclosure dot ie) said: > > I think something like > > (with-slots (slot-a slot-b slot-c) object > (declare (type double-float slot-a slot-b slot-c)) > :body) > > might work well enough for the purpose of getting rid of boxing in a lexical > context, but the boxing obviously will be there on the context entry/exit > level yet it may work well enough if you are doing some substantial amount > of computation in-between. No, I think that will not work because with-slots just causes uses of slot-a etc to call slot-value. I.e. accessing the underlying slot each time, not some lexical variable that can hold the unboxed value. -- Martin Simmons LispWorks Ltd http://www.lispworks.com/ _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html