[gambit-list] PS/Tk on Gambit

Marc Feeley feeley at iro.umontreal.ca
Sun Dec 3 10:59:13 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2-Dec-06, at 6:57 PM, Jeff Read wrote:

> Hi all,
>
> I managed to get Nils M. Holm's PS/Tk running on Gambit.
>
> I had to account for a subtle R5RS incompatibility in Gambit, which is
> that colon-terminated identifiers are keywords -- a set disjoint from
> the set of symbols. PS/Tk uses such identifiers to indicate options
> passed to wish for the creation of widgets.
>
> That said, it's an interesting hack, and it works well once this
> discrepancy has been addressed. Now we can enjoy a quick and easy way
> to get a GUI for our Gambit applications!
>
> The complete source file is at:
>
> http://ii-0-ii.com/parodycheck/software/tk-gambit.scm

Thanks for your contribution.  You might not have noticed, but there  
is also an interface to Tcl/Tk in the Gambit examples (examples/ 
tcltk), which uses the C interface FFI.  On the other hand your  
version uses a wish subprocess and this has the advantage that it is  
more portable.  Have you considered using cond-expand to make your  
code usable directly in all the implementations of Scheme mentioned  
in the source code?  If someday there is a central repository for  
portable Scheme packages, and that may happen soon, that version  
would be a very interesting contribution.

Marc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFcvRS//V9Zc2T/v4RAoTfAJ4ocLxCMiKQ8MhhYiNfqYLteq6f7gCglh9B
US1NfpUrSIcmb4hQTgeZSPk=
=YPP+
-----END PGP SIGNATURE-----



More information about the Gambit-list mailing list