[plt-scheme] backward compatibility?
On Tue, Jun 17, 2008 at 5:21 AM, Dmitry Lizorkin <lizorkin at ispras.ru> wrote:
> Hello!
> I noticed that
> (version)
> ==> "4.0"
> in PLT 4.0, althouth
> (version)
> ==> "360"
> in PLT 360, for instance, i.e. the version number has recently been divided
> by 100.
> What is then the reliable backward-compatible (and forward-compatible) way
> of writing something like
> "if version < 299 then ... else ...",
> resulting in the else-branch activated for PLT 4.0 and higher?
Are you using version-case from PLaneT? It should handle this detail.
http://planet.plt-scheme.org/display.ss?package=version-case.plt&owner=dyoo