Jump to content
Sign in to follow this  
torstenanders

:opusmodus in *features*?

Recommended Posts

Dear Janusz,

 

Would it be possible to add a symbol like :opusmodus to the variable *features*? I am writing a cross-platform library, and for Opusmodus-specific features it would be good to be able check for that platform. Currently, I am instead checking for Clozure CL and then assume Opusmodus as shown below, but it would be better to have some check specifically for Opusmodus.

(cond 
 #+clozure ; opusmodus
 ((om:omn-formp x) <do some fancy processing>)
 ...)

 

Best,

Torsten

Share this post


Link to post
Share on other sites

BTW: very easy to do. Somewhere in your code do the following. 

(setf *features* (cons :opusmodus *features*))

 

And there should not be any side effects, as long as you do not remove any symbol from *features*, because no-one will have tested for :opusmodus in that list before (except it is a typo :)

 

See also http://www.lispworks.com/documentation/lw50/CLHS/Body/v_featur.htm and http://www.cliki.net/features

 

Torsten

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...