comp.lang.ada
 help / color / mirror / Atom feed
* Naming convention for constructor functions
@ 2008-03-12 13:43 Maciej Sobczak
  2008-03-12 15:15 ` Lucretia
  0 siblings, 1 reply; 4+ messages in thread
From: Maciej Sobczak @ 2008-03-12 13:43 UTC (permalink / raw)


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



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

end of thread, other threads:[~2008-03-22 13:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-12 13:43 Naming convention for constructor functions Maciej Sobczak
2008-03-12 15:15 ` Lucretia
2008-03-22  1:31   ` Gene
2008-03-22 13:01   ` Georg Bauhaus

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