From: Christoph Grein <christoph.grein@eurocopter.de>
To: comp.lang.ada@ada.eu.org
Subject: Re: Gnat 3.13p: Command_Name RM A.15
Date: Thu, 18 Jan 2001 07:59:47 +0100 (MET)
Date: 2001-01-18T07:59:47+01:00 [thread overview]
Message-ID: <mailman.979801451.11095.comp.lang.ada@ada.eu.org> (raw)
Thanks to all for their responses.
Randy Brukardt gave me a nice solution (it may not be applicable for all cases,
but for me, it worked).
The original question was:
How do I get the full name of Ada.Command_Line.Command_Name? The result of
Command_Name is implementation dependent.
Open the file with the name given by Command_Name, call the Name function which
by A8.2(22) must return the full name, then close the file again:
Open (File, in_file, Ada.Command_Line.Command_Name);
Full_Name := Name (File); -- this is the idea only (careful, string sizes)
Close (File);
OK, A8.2(22) actually says "should", but Randy confirmed that the ACATS test for
the full name, so you can rely on this.
Christoph Grein
next reply other threads:[~2001-01-18 6:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-18 6:59 Christoph Grein [this message]
2001-01-18 12:38 ` Gnat 3.13p: Command_Name RM A.15 Larry Kilgallen
2001-01-18 14:32 ` Marin David Condic
2001-01-18 14:54 ` Ted Dennison
2001-01-18 15:12 ` Robert Dewar
-- strict thread matches above, loose matches on Subject: below --
2001-01-19 7:26 Christoph Grein
2001-01-18 12:10 Schroeer, Joachim Dr.
2001-01-18 12:19 ` Lutz Donnerhacke
2001-01-16 6:12 Christoph Grein
2001-01-16 14:22 ` Marin David Condic
2001-01-16 18:14 ` Jean-Pierre Rosen
2001-01-17 13:15 ` Marin David Condic
2001-01-17 19:12 ` Jean-Pierre Rosen
2001-01-18 3:28 ` Robert Dewar
2001-01-18 13:23 ` Marin David Condic
2001-01-18 15:15 ` Robert Dewar
2001-01-18 17:37 ` Jean-Pierre Rosen
2001-01-19 20:31 ` Florian Weimer
2001-01-18 3:25 ` Robert Dewar
2001-01-18 14:06 ` Marin David Condic
2001-01-17 19:17 ` Stephen Leake
2001-01-18 3:31 ` Robert Dewar
2001-01-18 14:13 ` Marin David Condic
2001-01-18 15:16 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox