comp.lang.ada
 help / color / mirror / Atom feed
* RE: RE: rename missing in Text_IO
@ 2001-05-04 21:47 Beard, Frank
  2001-05-07 14:13 ` Marin David Condic
  0 siblings, 1 reply; 35+ messages in thread
From: Beard, Frank @ 2001-05-04 21:47 UTC (permalink / raw)
  To: 'comp.lang.ada@ada.eu.org'

I'm apologize if I misunderstood you, but I've heard similar things from
others, including some vendors, and assumed that's what you meant.  One of
the vendors told me (highly paraphrased) they basically wait to see where
the market goes and then make bindings to the interfaces.  So, they're
always in a state of catch-up.

As far as Ada.C_Library, I wasn't thinking along those lines.  As a
matter of fact, I wouldn't really even want to make the connection
between the things I want provided in the language and their C counter
parts.  I was thinking more along the lines of your other suggestion,
such as Ada.Directory_Operations, Ada.File_Operations, etc.

Even if the C version is there first, hide that from me.  Take a good
idea and make it better with Ada.  

Frank

-----Original Message-----
From: Ted Dennison [mailto:dennison@telepath.com]
Sent: Friday, May 04, 2001 5:22 PM
To: comp.lang.ada@ada.eu.org
Subject: Re: RE: rename missing in Text_IO


In article <mailman.989009524.30396.comp.lang.ada@ada.eu.org>, Beard, Frank
says...
>But why not be part of the standard, maybe in an Annex.  I
>almost sympathize with what Ted's saying.  But by his reasoning,
>Ada.Command_Line shouldn't be provided either, because the OS
>has an interface to do it.  For that matter, none of the IO should
>be there because we could pragma interface to all those routines.
..
>From: Ted Dennison [mailto:dennison@telepath.com]
>That's all stuff that's considered part of the OS, and thus you are
expected
>to make the appropriate OS calls for your platform. Most of the time, your
Ada
>vendor will have supplied a package that has bindings to those OS calls,
but
>what it is depends on your vendor and platform.

Hey, I never said it was a Good Thing. I just said that this is the way it
is.
For a beginner, that's the main issue.

I actually think it may well be a good thing to have some kind of
Ada.C_Library
package hierarchy in an annex in some future version of the language for
stuff
like that, since the C library realisticly is going to be available on most
Ada
platforms. Perhaps an Ada.Directory_Operations would be a good idea too.
Heck,
I'd even like to see a GUI in the standard, if its possible to agree on a
good
one.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada




^ permalink raw reply	[flat|nested] 35+ messages in thread
* RE: rename missing in Text_IO
@ 2001-05-09 22:56 Beard, Frank
  0 siblings, 0 replies; 35+ messages in thread
From: Beard, Frank @ 2001-05-09 22:56 UTC (permalink / raw)
  To: 'comp.lang.ada@ada.eu.org'


-----Original Message-----
From: Fraser Wilson [mailto:blancolioni@blancolioni.org]

>> 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.

So what?  If I need to move it to another disk, then I need to move
it to another disk.  I don't think the cost would be the issue in that
case.  If cost is the issue, which would be determined either by 
prototyping or performance testing, then keep it on the same disk.

> I think the implementation detail line is quite fuzzy here.

POSIX figured it out in some reasonable manner.

> 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?

You wouldn't be using the move/rename in this case anyway, would you?
Probably an RPC command, which is another Annex for discussion.

Frank




^ permalink raw reply	[flat|nested] 35+ messages in thread
* RE: rename missing in Text_IO
@ 2001-05-07 17:01 Beard, Frank
  0 siblings, 0 replies; 35+ messages in thread
From: Beard, Frank @ 2001-05-07 17:01 UTC (permalink / raw)
  To: 'comp.lang.ada@ada.eu.org'

Yes, I realize that, but you're talking about a system dependency
which is a separate issue from the logical operations.  I don't
remember that limitation on VMS, but I haven't been on that OS in
twelve years.

But, if that is the case, then the operation would simply raise 
something like USE_ERROR to indicate a problem.  The developer on that
OS would need to know the system well enough to know that limitation.

And just because it varies doesn't mean it shouldn't be done.  The
Posix binding for VMS had a rename in it.  I hate to keep going back
to the same example, but the same argument can be made, and was made,
for Ada.Command_Line.  It varies from system to system, and doesn't
even exist on some.


-----Original Message-----
From: Kilgallen@eisner.decus.org.nospam

Unlike Delete, the legality of Rename is going to vary from operating
system to operating system.  If you rename into a different directory
on VMS, that directory must be on the same physical disk.  With rooted
directories, begin on the same disk is not obvious by comparing the old
and new filespecs.

_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada




^ permalink raw reply	[flat|nested] 35+ messages in thread
* RE: rename missing in Text_IO
@ 2001-05-04 21:48 Beard, Frank
  0 siblings, 0 replies; 35+ messages in thread
From: Beard, Frank @ 2001-05-04 21:48 UTC (permalink / raw)
  To: 'comp.lang.ada@ada.eu.org'

I totally agree!
Frank

-----Original Message-----
From: Pascal Obry [mailto:p.obry@wanadoo.fr]
Sent: Friday, May 04, 2001 5:08 PM
To: comp.lang.ada@ada.eu.org
Subject: Re: rename missing in Text_IO



"Beard, Frank" <beardf@spawar.navy.mil> writes:

> I would love to see file handling expanded.  Renaming a file
> should be there just as the Delete is there.  Why not have all

Note that Delate is there but taking a File_Type as argument. Do you really
want to open the file to be able to delete it ? I would say no in the
general
case and we really need a Delete/Rename with a string argument.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada




^ permalink raw reply	[flat|nested] 35+ messages in thread
* RE: rename missing in Text_IO
@ 2001-05-04 20:50 Beard, Frank
  2001-05-04 21:08 ` Pascal Obry
                   ` (2 more replies)
  0 siblings, 3 replies; 35+ messages in thread
From: Beard, Frank @ 2001-05-04 20:50 UTC (permalink / raw)
  To: 'comp.lang.ada@ada.eu.org'

But why not be part of the standard, maybe in an Annex.  I
almost sympathize with what Ted's saying.  But by his reasoning,
Ada.Command_Line shouldn't be provided either, because the OS
has an interface to do it.  For that matter, none of the IO should
be there because we could pragma interface to all those routines.

I would love to see file handling expanded.  Renaming a file
should be there just as the Delete is there.  Why not have all
the common file operations available.  I think you should be able
to do locking, file or record, from within the language standard.
Getting a directory list should be there too.

Frank

-----Original Message-----
From: Ted Dennison [mailto:dennison@telepath.com]
Sent: Friday, May 04, 2001 9:43 AM
To: comp.lang.ada@ada.eu.org
Subject: Re: rename missing in Text_IO


In article <3af28c5a.12778070@news.nl.uu.net>, Noam Kloos says...

>I just played with filtering some textfiles and found there is no
>function to rename a file;

That's right. There's no function to delete a file, or list a directory
either.
That's all stuff that's considered part of the OS, and thus you are expected
to
make the appropriate OS calls for your platform. Most of the time, your Ada
vendor will have supplied a package that has bindings to those OS calls, but
what it is depends on your vendor and platform.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada.eu.org
http://ada.eu.org/mailman/listinfo/comp.lang.ada




^ permalink raw reply	[flat|nested] 35+ messages in thread
* rename missing in Text_IO
@ 2001-05-04 11:04 Noam Kloos
  2001-05-04 13:43 ` Ted Dennison
  0 siblings, 1 reply; 35+ messages in thread
From: Noam Kloos @ 2001-05-04 11:04 UTC (permalink / raw)


Hi,

I just played with filtering some textfiles and found there is no
function to rename a file;

Noam Kloos.



^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2001-05-12  4:04 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-04 21:47 RE: rename missing in Text_IO Beard, Frank
2001-05-07 14:13 ` Marin David Condic
2001-05-07 15:28   ` Ted Dennison
2001-05-07 16:03     ` Marin David Condic
2001-05-07 18:03       ` Ted Dennison
2001-05-07 19:00         ` Marin David Condic
2001-05-08  4:38           ` tmoran
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-08  4:38     ` tmoran
2001-05-08 13:24       ` Ted Dennison
2001-05-12  4:04   ` Randy Brukardt
  -- strict thread matches above, loose matches on Subject: below --
2001-05-09 22:56 Beard, Frank
2001-05-07 17:01 Beard, Frank
2001-05-04 21:48 Beard, Frank
2001-05-04 20:50 Beard, Frank
2001-05-04 21:08 ` Pascal Obry
2001-05-04 21:21 ` Ted Dennison
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
2001-05-10 13:16             ` Ted Dennison
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox