[plt-scheme] knowing if dynamic-require will succeed
Beautiful -- this does exactly the right thing. I do (require scheme/
gui/dynamic) and then use the condition (gui-available?).
Perfect -- thanks!
-Lee
On Sep 5, 2009, at 1:14 PM, Matthew Flatt wrote:
> At Sat, 5 Sep 2009 11:54:31 -0400, Lee Spector wrote:
>> So what I would ideally like to do is to replace (equal? 'unix
>> (system-
>> type)) with something that asks what I really need to know, which is
>> "Will dynamically requiring plot fail?"
>>
>> Is there a way to do this?
>
> I think you want `gui-avilable?' from `scheme/gui/dynamic'.
>
>
>
--
Lee Spector, Professor of Computer Science
School of Cognitive Science, Hampshire College
893 West Street, Amherst, MA 01002-3359
lspector at hampshire.edu, http://hampshire.edu/lspector/
Phone: 413-559-5352, Fax: 413-559-5438
Check out Genetic Programming and Evolvable Machines:
http://www.springer.com/10710 - http://gpemjournal.blogspot.com/