chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] functions for hash tables


From: Sven . Hartrumpf
Subject: Re: [Chicken-users] functions for hash tables
Date: Thu, 27 Jan 2005 09:16:35 +0100 (CET)

On 26 Jan 2005, Ed Watkeys <address@hidden> wrote:

> When I started working programming in Scheme, I was amazed to find that 
> there weren't any standard procedures that returned the implementation 
> name and version. With such a mechanism, it would be much easier to 
> re-define procedures to ensure that your MzScheme code will execute in 
> Chicken.
> 
> (cond
>   ((eq? (scheme-implementation) 'mzscheme)) ; do nothing
>   ((eq? (scheme-implementation) 'chicken)
>    (define hash-table-put hash-table-set)
>    ; and whatever else...
> ))
> 
> Providing a framework for this sort of porting solution is do-able,

And has been done: SRFI-0 (most Schemes define an identifier for their 
implementation).

Ciao
Sven

Attachment: pgpFHTifed663.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]