GNU bug report logs -
#6488
put `cl-floor', `cl-ceiling', `cl-truncate', `cl-round', and `cl-mod' side-effect-free
Previous Next
Reported by: MON KEY <monkey <at> sandpframing.com>
Date: Mon, 21 Jun 2010 22:37:01 UTC
Severity: minor
Tags: wontfix
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6488 in the body.
You can then email your comments to 6488 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6488
; Package
emacs
.
(Mon, 21 Jun 2010 22:37:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
MON KEY <monkey <at> sandpframing.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 21 Jun 2010 22:37:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Following fncns from lisp/emacs-lisp/cl-compat.el
`cl-floor' `cl-ceiling' `cl-truncate' `cl-round' `cl-mod'
are aliased in cl.el as `floor*' `ceiling*' `round*' `truncate*'
The definition of `Values-list' uses cl.el's `values' not
cl-compat.el's `Values'. Does this mean that all of the below is
redundant:
,----
| (defun cl-floor (a &optional b) (Values-list (floor* a b)))
| (defun cl-ceiling (a &optional b) (Values-list (ceiling* a b)))
| (defun cl-round (a &optional b) (Values-list (round* a b)))
| (defun cl-truncate (a &optional b) (Values-list (truncate* a b)))
`----
IOW, are the following not equivalent:
(Values-list (truncate* a b))
--> (apply 'values (truncate* 17 9))
--> (apply 'list (truncate* 17 9))
--> (truncate* 17 9)
Or, am I missing something?
And, if not, and in the off chnace that the byte-compiler would
benefit, would it be reasonable to put the 'side-effect-free property
on `cl-floor', `cl-ceiling', `cl-truncate', `cl-round', `cl-mod' as
they currently don't have it:
(let (gthr-sef)
(dolist (sefl '(floor* cl-floor
ceiling* cl-ceiling
truncate* cl-truncate
round* cl-round
mod* cl-mod)
(setq gthr-sef (nreverse gthr-sef)))
(if (get sefl 'side-effect-free)
(push `(,sefl . side-effect-free) gthr-sef)
(push `(,sefl . IS-NOT-side-effect-free) gthr-sef))))
--
/s_P\
Added tag(s) wontfix.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jul 2011 23:31:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
6488 <at> debbugs.gnu.org and MON KEY <monkey <at> sandpframing.com>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Jul 2011 23:31:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6488
; Package
emacs
.
(Wed, 13 Jul 2011 23:52:01 GMT)
Full text and
rfc822 format available.
Message #12 received at 6488 <at> debbugs.gnu.org (full text, mbox):
MON KEY <monkey <at> sandpframing.com> writes:
> And, if not, and in the off chnace that the byte-compiler would
> benefit, would it be reasonable to put the 'side-effect-free property
> on `cl-floor', `cl-ceiling', `cl-truncate', `cl-round', `cl-mod' as
> they currently don't have it:
I don't think this is worth doing.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 11 Aug 2011 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 3 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.