From: charleshixson@earthling.net (Charles Hixson)
Subject: Re: rename missing in Text_IO
Date: Wed, 09 May 2001 22:33:18 GMT
Date: 2001-05-09T22:33:18+00:00 [thread overview]
Message-ID: <Xns909C9E3BB6665charleshixsonearthli@207.217.77.26> (raw)
In-Reply-To: fy73daefabm.fsf@blancolioni.org
Fraser Wilson <blancolioni@blancolioni.org> wrote in
<fy73daefabm.fsf@blancolioni.org>:
>charleshixson@earthling.net (Charles Hixson) writes:
>
>> But if what we are considering is what an Ada Library
>> Package should look like, then there's no reason to copy
>> the low level features of an operating system. And the
>> semantics of the mv command is generally superior. A
>> program should not need to know the details of the disk
>> layout.
>
>The problem is that a rename or move on the same disk is
>significantly cheaper than one that crosses disks. It's also
>a much safer operation. I think the implementation detail
>line is quite fuzzy here.
>
>More generally, the destination might not even be a disk
>filesystem; it could be a remote ftp site or /proc on Linux.
>Does a move/rename even make sense in those cases?
>
>Fraser.
>
It makes as much sense in those cases as in other read-only
cases (unless you have read/write access to the ftp site, in
which case I would say, "Yes, it makes sense, but wouldn't copy
be a better choice?") I do think that basic characteristics of
the file are reasonable to be able to determine, I just don't
think that they should be mandatory. Among these
characteristics I would include "Is it a local file?", "How big
is it?", "Can you write to it?", "Can you seek within it?",
"Can you write within it, without destroying everything that
follows the write location?", "Who is the owner?", "When was it
last changed?", etc. All the standard file status questions.
The thing is, to each of these questions, "I don't know." has to
be a valid answer. Perhaps it would be an unusual answer, but
it needs to be possible. This is what would make a really
portable package possible. (It would be trivial to port a
package that just answered "I don't know." whatever you asked
it. Not particularly useful, but trivial.) What your program
should do in response to "I don't know" is less clear. Perhaps
it should ask the user?
--
Charles Hixson
Copy software legally, the GNU way!
Use GNU software, and legally make and share copies of software.
See http://www.gnu.org
http://www.redhat.com
http://www.linux-mandrake.com
http://www.calderasystems.com/
http://www.linuxapps.com/
next prev parent reply other threads:[~2001-05-09 22:33 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-04 20:50 rename missing in Text_IO Beard, Frank
2001-05-04 21:08 ` Pascal Obry
2001-05-04 21:21 ` Ted Dennison
2001-05-05 21:19 ` Keith Thompson
2001-05-07 8:56 ` Noam Kloos
2001-05-04 23:38 ` Larry Kilgallen
2001-05-04 23:17 ` David Starner
2001-05-08 22:03 ` Charles Hixson
2001-05-08 23:51 ` David Starner
2001-05-09 16:22 ` Charles Hixson
2001-05-09 22:04 ` Fraser Wilson
2001-05-09 22:33 ` Charles Hixson [this message]
2001-05-10 13:16 ` Ted Dennison
-- strict thread matches above, loose matches on Subject: below --
2001-05-09 22:56 Beard, Frank
2001-05-07 19:00 Marin David Condic
2001-05-08 4:38 ` tmoran
2001-05-08 13:16 ` Marin David Condic
2001-05-09 13:10 ` Stephen Leake
2001-05-09 14:44 ` Marin David Condic
2001-05-10 4:39 ` tmoran
2001-05-07 17:01 Beard, Frank
2001-05-04 21:48 Beard, Frank
2001-05-04 11:04 Noam Kloos
2001-05-04 13:43 ` Ted Dennison
2001-05-04 13:53 ` Noam Kloos
2001-05-04 15:39 ` Ted Dennison
2001-05-04 14:00 ` Noam Kloos
2001-05-04 21:15 ` Florian Weimer
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox