[plt-scheme] SLIB3a4 and DrScheme 360

From: John Clements (clements at brinckerhoff.org)
Date: Thu Nov 30 18:34:43 EST 2006

On Nov 29, 2006, at 1:07 PM, John T. Murphy wrote:

> Hello,
> I am attempting to use SLIB with DrScheme 360. I've downloaded the  
> latest
> SLIB version, which appears to be 3a4, and installed it as required  
> in my
> 'collects' directory. I attempt to load it using either:
> (require (lib "load.ss" "slibinit"))
> or
> (load (build-path (collection-path "slibinit") "init.ss"))
> or by directly executing the definitions in the file "slibinit/ 
> init.ss"
> which comes with DrScheme. Whatever the method, I receive the  
> following
> error:
> ..\..\slib\require.scm::6146: reference to undefined identifier:
> slib:features

The problem is that DrScheme's init.ss file no longer matches the  
DrScheme.init file provided with SLIB.

One way to fix this is to change references in slibinit/init.ss to  
*FEATURES* into references to 'slib:features'.  Here's the diff:

computer:~/plt/collects/slibinit clements$ svn diff init.ss
Index: init.ss
--- init.ss     (revision 4988)
+++ init.ss     (working copy)
@@ -104,10 +104,10 @@
    (lambda (vic name)
      (path->string (build-path vic name))))
-;;; *FEATURES* should be set to a list of symbols describing features
+;;; slib:features should be set to a list of symbols describing  
;;; of this implementation.  Suggestions for features are:
-(define *features*
+(define slib:features
         source                          ;can load scheme source files
                                         ;(slib:load-source "filename")

... I'm hesitant to commit this change, because it will break  
compatibility with earlier versions of SLIB.  One moderately gross  
solution would be just to define _both_ of them; I don't know what  
SLIB's attitude to this would be.

Caveat: it's certainly possible that other things about SLIB have  
changed since 1997, and that this fix will uncover other problems.   
The larger problem is that the slibinit/init.ss file is not an  
official part of SLIB, and is therefore not updated as part of the  
SLIB project.

Hope this helps,

John Clements

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2484 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20061130/7d249a13/attachment.p7s>

Posted on the users mailing list.