|
From: | Stefan Monnier |
Subject: | bug#12096: 24.1; Several documented functions in URL package are not defined |
Date: | Mon, 06 Aug 2012 17:43:27 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
>> This does not remove a useless constructor, but instead adds a useless >> contructor (the ":constructor nil" thingy is there to disable the >> automatic creation of a default constructor). > Are you sure? Yes. Try it. > (progn > (require 'cl) > (fmakunbound 'make-foo) > (fmakunbound 'cake) > (defstruct (foo (:constructor cake)) a b c) > (mapcar 'fboundp '(make-foo cake))) There's a difference between (:constructor cake) and (:constructor cake (foo bar)) where the first just gives the name to use for the default constructor, whereas the second defines an additional constructor. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |