|
From: | Graham Fawcett |
Subject: | Re: [Chicken-users] file-exists? on Windows |
Date: | Mon, 14 May 2007 14:58:26 -0400 |
On 5/14/07, Kon Lovett <address@hidden> wrote:
On May 14, 2007, at 11:28 AM, John Cowan wrote: > Ah. No. The Win32 kernel does *not* ignore trailing backslashes the > way the Unix kernel ignores trailing slashes -- instead, it returns > file-not-found errors. This comes down to a question of platform abstraction. Which I suspect is the unspoken point of Mario's. We do need to remember that whatever their compatibility layers/modes Win32 & MacOS X are not unix. But Chicken does seem to have a bent for providing a common filesystem view so '(file-exists? ".\\")' probably should work on Windows, with a little help from special case handling.
#<<EOF Insert fuzzy, incomplete thought here, about how we could use a system for cooperatively defining unit tests against Chicken and extension modules, to turn up and help resolve issues like these. (It should be as easy to define a test as it is to edit a Wiki page, and at least twice as fun.) Macroexpand later into an eloquent appeal to fellow chicken-users, to help develop such a system, based on existing extension modules where possible. EOF Graham
[Prev in Thread] | Current Thread | [Next in Thread] |