From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b3855c7c1e6ef286,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!y77g2000hsy.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Naming convention for constructor functions Date: Wed, 12 Mar 2008 06:43:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 128.141.45.252 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1205329392 13615 127.0.0.1 (12 Mar 2008 13:43:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 12 Mar 2008 13:43:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y77g2000hsy.googlegroups.com; posting-host=128.141.45.252; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20311 Date: 2008-03-12T06:43:11-07:00 List-Id: Hi, What is the established convention for naming constructor functions? I'm mostly concerned with constructors for limited types, but that should not matter here. One nice convention that I've seen is: type Person (<>) is limited private; function Make_Person (someparameters) return Person; I can also imagine Create_T, Construct_T, etc., but Make_T seems to be the shortest while still conveying the meaning properly. Is it also most widely used? -- Maciej Sobczak * www.msobczak.com * www.inspirel.com