fahree at gmail.com
Tue May 17 13:47:26 UTC 2016
On Tue, May 17, 2016 at 9:39 AM, Didier Verna <didier at lrde.epita.fr> wrote:
> Stelian Ionescu wrote:
>> (error "FEATURE missing")
>> at toplevel, so you get an error on reading the .asd file.
> Of course. I said a "declarative way" within the system itself tho ;-)
I strongly recommend against erroring in the .asd file itself based on
the implementation, because that hinders cross-compilation.
The traditional solution is to load a file that fails.
i.e. create a file unsupported-implementation.lisp that
has an (error ...) form and in your asd file, use a component
(:file "unsupported-implementation" :if-feature (:not :sbcl))
And yes, I probably should have called it :when-feature instead of
:if-feature. My bad. If you think that's worth it, we can add the new
name now and remove the old name in 2 years.
PS: Robert, I pushed a tiny tweak to the documentation.
—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
If you're wrong against the dominant ideology, you'll be laughed at.
If you're right against the dominant ideology, you'll be hated.
More information about the asdf-devel