Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site scgvaxd.UUCP Path: utzoo!watmath!clyde!burl!we13!ihnp4!zehntel!tektronix!hplabs!sdcrdcf!trwrb!scgvaxd!kvc From: kvc@scgvaxd.UUCP (Kevin Carosso) Newsgroups: net.cog-eng,net.lang Subject: Re: Time for keyword parameters in prog. langs Message-ID: <173@scgvaxd.UUCP> Date: Thu, 12-Apr-84 22:06:43 EST Article-I.D.: scgvaxd.173 Posted: Thu Apr 12 22:06:43 1984 Date-Received: Tue, 17-Apr-84 06:54:54 EST References: <3781@utcsrgv.UUCP> <824@ulysses.UUCP> Organization: Hughes Aircraft Co., El Segundo, CA Lines: 15 Ada provides for "keyword parameters". They are called named associations (at least in the Young book). Positional and named parameters can be mixed as long as the positional guys come first. For example, assuming procedure do_something (par1 : integer; par2 : string) is ... then do_something (par1 => 6, par2 => "a string"); do_something (6, "a string"); and do_something (6, par2 => "a string"); are all equivalent. /Kevin Carosso allegra!scgvaxd!engvax!kvc Hughes Aircraft Co.