Issue #3 new

Create optional library to handle SRFI-19 imcompatibilty

Takashi Kato
created an issue

(srfi :19) may not be supported on Chez Scheme however to write a compatible layer of it wont hurt and make library easier to use instead of let user change the code.

Most of R6RS implementations can handle those file name suffix and Chez only requires to add .chezscheme in between file extension and file name. So for Chez following would be the one;

For Chez Scheme; compat/time.chezscheme.ss

#!r6rs
(library (compat time)
   (export time-nanosecond time-second time? make-time)
   (import (only (chezscheme) time-nanosecond time-second time? make-time)))

For other implementations which support SRFI-19 compat/time.ss

#!r6rs
(library (compat time)
   (export time-nanosecond time-second time? make-time)
   (import (only (srfi :19) time-nanosecond time-second time? make-time)))

Comments (0)

  1. Log in to comment