Ticket #769 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Multiple :constructor options in cl:defstruct

Reported by: lovesan Owned by: rme
Priority: major Milestone:
Component: ANSI CL Compliance Version: trunk
Keywords: Cc:

Description

Hello.

CCL does not accept multiple :CONSTRUCTOR options in DEFSTRUCT macro at the moment.

i.e. (defstruct (my-struct (:constructor make-my-struct) (:constructor my-struct)))

Error: Duplicate (:CONSTRUCTOR MY-STRUCT) options not allowed

While executing: DEFSTRUCT, in process listener(1).

This is an incompatibility with ANSI CL standard, which allows multiple constructor options:  http://www.lispworks.com/documentation/HyperSpec/Body/m_defstr.htm

Change History

comment:1 Changed 4 years ago by rme

  • Owner set to rme

comment:2 Changed 4 years ago by rme

  • Status changed from new to closed
  • Resolution set to fixed

(In [14501]) Support defining multiple keyword constructor functions in defstruct.

If (:constructor nil) is combined with other :constructor options (defining either keyword or boa constructors), whine about that.

Fixes ticket:769.

Note: See TracTickets for help on using tickets.