[plt-scheme] r6rs timer
On Thursday 28 August 2008 08:48:11 Jos Koot wrote:
> For myself I usually use #lang scheme (because it is so compete)
> However, sometimes I am asked to provide R6RS conformant code.
> Then I use #!r6rs (with an anoying long list of imports)
> But I can't find something like PLT's "time" macro in any of the R6RS
> libraries. Does something alike live in R5RS? If so I would be much obliged
> if you would provide me a pointer. Thanks,
> Jos
R6RS library compatibility is still a bit in flux, but the basic strategy for
importing implementation specific features is to define a *-compat.<impl>.ss
file and have your program import library *-compat.
You still need to set the the implementation specific search paths and
possibly symbolic links.
E.g. see attached process-compat.*.sls files which live in my "kend"
directory.
Use:
(import (kend process-compat)
;; ...
)
Close enough?
Cheers,
-KenD
PS: Note SRFI 97: "SRFI Libraries"
http://srfi.schemers.org/srfi-97/srfi-97.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: process-compat.mzscheme.sls
Type: text/scheme source
Size: 2084 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20080828/a2b7461d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: process-compat.ikarus.sls
Type: text/scheme source
Size: 1790 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20080828/a2b7461d/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: process-compat.larceny.sls
Type: text/scheme source
Size: 2295 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20080828/a2b7461d/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: process-compat.ypsilon.sls
Type: text/scheme source
Size: 1983 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20080828/a2b7461d/attachment-0003.bin>