[plt-scheme] knowing if dynamic-require will succeed

From: Lee Spector (lspector at hampshire.edu)
Date: Sat Sep 5 13:37:59 EDT 2009

Beautiful -- this does exactly the right thing. I do (require scheme/ 
gui/dynamic) and then use the condition (gui-available?).

Perfect -- thanks!


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/

Posted on the users mailing list.