Report a style warning when :USE is omitted from DEFPACKAGE

Bug #1801727 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Opinion
Undecided
Unassigned

Bug Description

The defaulting behavior of :USE in DEFPACKAGE is implementation dependent, and as a result is not portable. Issue a style warning if DEFPACKAGE is found without a :USE clause.

Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

This issue tripped up phoe when he was producing a portable test suite for package local nicknames. Perhaps it should be a warning, not a style warning.

Revision history for this message
Douglas Katzman (dougk) wrote :

There is set of users who would be disaffected - those who compile in a build infrastructure that escalate all warnings to build breakages. Introducing a new warning for something as innocuous as a perfectly ordinary call to defpackage that is nowise unstylish would kind of be a problem for them.
(And don't get me wrong - it is problematic to introduce _any_ new style warning)

Changed in sbcl:
status: New → Opinion
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.