[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sbcl-devel
Subject:    Re: [Sbcl-devel] [Sbcl-commits] master: Return the advertised thing from SB-EXT:RESTRICT-COMPILER-PO
From:       Stas Boukarev <stassats () gmail ! com>
Date:       2015-05-31 16:21:16
Message-ID: 87h9qsg1kz.fsf () gmail ! com
[Download RAW message or body]

Stas Boukarev <stassats@gmail.com> writes:

> Luís Oliveira <luismbo@gmail.com> writes:
>
>> On Sat, May 30, 2015 at 9:30 PM, Stas Boukarev <stassats@gmail.com> wrote:
>>> This broke slime
>>> (sb-ext:restrict-compiler-policy ) without any restriction now gives
>>>
>>> The value NIL is not of type POLICY.
>>>   0: (POLICY-TO-DECL-SPEC NIL T NIL)
>>
>> I plan to release a new version of SLIME later today or perhaps
>> tomorrow. Is there anything that can be done on the SLIME side to work
>> around this? Perhaps wrapping the call to restrict-compiler-policy
>> with (when sb-c::*policy-restrictions* ...)?
> Just running (sb-ext:restrict-compiler-policy 'debug) once is enough.
Oh, but running it like that will override user's policies.
So,
(handler-case (sb-ext:restrict-compiler-policy)
  (error () (sb-ext:restrict-compiler-policy 'debug)))
 
-- 
With best regards, Stas.

------------------------------------------------------------------------------
_______________________________________________
Sbcl-devel mailing list
Sbcl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sbcl-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic