scsh-hackers
[Top] [All Lists]

Re: [Scsh-hackers] Saving calls to file-info

To: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Subject: Re: [Scsh-hackers] Saving calls to file-info
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Mon Aug 26 02:34:02 2002
Cc: scsh-hackers <scsh-hackers@lists.sourceforge.net>
List-id: Discussion among the implementors <scsh-hackers.lists.sourceforge.net>
Sender: scsh-hackers-admin@lists.sourceforge.net
>>>>> "Mike" == Michael Sperber <sperber@informatik.uni-tuebingen.de> writes:

>>>>> "Martin" == Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de> 
>>>>> writes:
Martin> I didn't dare to think that you would like to introduce faked record
Martin> accessors.

Mike> I would!  I would!

So we need more developers to come to a decision on this topic. The
alternatives are:

1.) overloading

file-directory?
file-fifo? 
file-regular?
file-socket?
file-special?
file-symlink?
file-not-readable?
file-not-writable?
file-not-executable?
file-readable?
file-writable?
file-executable?
file-not-exists?
file-exists?

to accept file-info records as first argument.

2.) introducing new procedures looking like record accessors:

file-info:file-directory?
file-info:file-fifo? 
file-info:file-regular?
file-info:file-socket?
file-info:file-special?
file-info:file-symlink?
file-info:file-not-readable?
file-info:file-not-writable?
file-info:file-not-executable?
file-info:file-readable?
file-info:file-writable?
file-info:file-executable?
file-info:file-not-exists?
file-info:file-exists?

3.) As a new alternative, we could introduce new procedures with a
file-info- prefix

file-info-file-directory?
file-info-file-fifo? 
file-info-file-regular?
file-info-file-socket?
file-info-file-special?
file-info-file-symlink?
file-info-file-not-readable?
file-info-file-not-writable?
file-info-file-not-executable?
file-info-file-readable?
file-info-file-writable?
file-info-file-executable?
file-info-file-not-exists?
file-info-file-exists?

4.) Do nothing

Cast your vote now!

-- 
Martin


<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Scsh-hackers] Saving calls to file-info, Martin Gasbichler <=