[racket] Racket v5.93

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sat Feb 1 11:52:45 EST 2014

Since you found "schminc.h" (which is referenced at the end of
"racket/src/README"), did you follow the steps described at the top of
that file?

In any case, instead of adding 6 new functions[*], I suggest adding an
optional symbol argument to `file-exists?`. For example,

 (file-exists? p 'regular)

could check that `p` exists as a regular file.


At Sat, 1 Feb 2014 15:28:32 +0100, Manfred Lotz wrote:
> Hi Robby,
> Sorry, forgot to post to the list in my previous mail.
> 
> On Sat, 1 Feb 2014 06:55:55 -0600
> Robby Findler <robby at eecs.northwestern.edu>
> wrote:
> 
> > Hi Manfred: our plans for 6.0 would not be so ambitious as to include
> > functions like that. But for releases after that, it is certainly
> > possible.
> > 
> > It will likely be faster if someone were to contribute an
> > implementation, naturally.
> > 
> 
> 
> I tried to implement it. When adding socket-exists? to file.c
> I got an error 
> 
> Primitive count 1117 doesn't match expected count 1116
> 
> which I understood but I couldn't figure out how to solve it.
> 
> I tried to change EXPECTED_PRIM_COUNT to 1117 in
> src/racket/src/schminc.h but running make again gave me:
> 
> make[4]: Entering directory
> `/data/downloads/racket-5.93/src/build/racket/gc2' 
> env XFORM_PRECOMP=yes ../racketcgc  -cqu ../../../racket/gc2/xform.rkt
> --setup . --cpp "gcc -E -I./.. -I../../../racket/gc2/../include
> -pthread     "  --keep-lines -o
> xsrc/precomp.h ../../../racket/gc2/precomp.c 
> current-load-extension: contract violation 
>     expected: (any/c any/c . -> . any) 
>     given: #"([^:]*):(.*)"
>     context...: 
>       #%utils: [running body] 
>       #%boot: [traversing imports]
> 
> 
> 
> Now I'm stuck. Perhaps anybody could enlighten me.
> 
> 
> 
> -- 
> Best regards,
> Manfred
> 
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.