Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Scheme Programming Language

test for mzscheme and mit-scheme


hi

How do I write protable code testing different scheme implementation
like mzscheme and mit-scheme. I've tried to use procedure? but that
won't work and you know why. scheme is too eager. I can't think of a
way "not" to trigger symbol not found type error. How to I catch an
exception and continue the rest of my code?

maina@gmail.com skrev:

> How do I write protable code testing different scheme implementation
> like mzscheme and mit-scheme.

Do you want to write R5RS code?

Or just code that runs on both MzScheme and MIT-Scheme?

Writing the test code in an R5RS portable fashion can't be done.

An easy way to write code that works in both MzScheme and
MIT-Scheme is to keep two files:  mzscheme.scm and mit.scm
in which you put definitions of things that are MzScheme and
MIT-Scheme specific respectively. Then as the first line in
main.scm use (include "mzscheme.scm") or (include "mit.scm").

--
Jens Axel Sgaard

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc