Opened 8 years ago

Closed 8 years ago

#936 closed defect (worksforme)

delete-package on a package that does not exist should behave better

Reported by: fare Owned by:
Priority: minor Milestone:
Component: ANSI CL Compliance Version: trunk
Keywords: Cc:

Description

Dan Weinreb 2009-09-08 15:09:04 EDT

delete-package, when called on a name that does not name a package, should return nil according to the Common Lisp hyperspec rather than signal a condition (for better or worse). Instead, it signals.

Comment 1 Ethan H. Schwartz 2009-09-10 17:22:03 EDT

from http://www.lispworks.com/documentation/HyperSpec/Body/f_del_pk.htm#delete-package:

Exceptional Situations:

If the package designator is a name that does not currently name a package, a correctable error of type package-error is signaled. If correction is attempted, no deletion action is attempted; instead, delete-package immediately returns nil.

[NB1: there are other exceptional situations in the CLHS]

[NB2: this was ITA bug 67561]

Change History (1)

comment:1 Changed 8 years ago by rme

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

We already CERROR appropriately when the package name doesn't designate a package.

I'm going to close this bug as worksforme, but if there's some other aspect of delete-package that is behaving wrongly, could you please reopen this ticket and clarify what the incorrect behavior you're seeing is?

Note: See TracTickets for help on using tickets.