API to get current optimize settings at macroexpansion time

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

Bug Description

I would like an API to get the OPTIMIZE declaration settings from the environment argument to a macro.

The use case for this is that I want to be able to alter these settings for parts of the expanded code (for example, turning DEBUG down for bindings of generated variables that the user doesn't care about), then restoring the settings for user code that is lexically nested inside these generated bindings.

Revision history for this message
Stas Boukarev (stassats) wrote :

(sb-cltl2:declaration-information 'optimize)

Changed in sbcl:
status: New → Invalid
Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

Thank you.

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.