From: Marius Amado Alves <amado.alves@netcabo.pt>
To: comp.lang.ada@ada-france.org
Subject: Re: Accessing Windows environment vairables in ObjectADA on windows
Date: Fri, 15 Oct 2004 11:07:23 +0100
Date: 2004-10-15T11:07:23+01:00 [thread overview]
Message-ID: <mailman.334.1097834830.390.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <b949b6a7.0410142325.3a379563@posting.google.com>
> Len:=System.RTS.Win32.GetEnvironmentVariable("TEST_SOURCE_DIR",EnvVal'Address,Len);
This is terribly C-ish and unlike the Ada way.
A proper Ada subprogram for this will have a prototype like
function GetEnvironmentVariable
(Name : String) return String;
or
procedure GetEnvironmentVariable
(Name : String; Value : out Unbounded_String);
next prev parent reply other threads:[~2004-10-15 10:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-15 7:25 Accessing Windows environment vairables in ObjectADA on windows TARAN TRIPATHI
2004-10-15 10:02 ` Marius Amado Alves
2004-10-15 10:07 ` Marius Amado Alves [this message]
2004-10-15 10:15 ` Marius Amado Alves
[not found] ` <311c6b78.0410150755.36b2e872@posting.google.com>
2004-10-16 1:18 ` Jeffrey Carter
2004-10-16 3:09 ` Steve
2004-10-18 20:01 ` Frank Beard
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox