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.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,37680a99b5e22b2b X-Google-Attributes: gid103376,public From: Bill Keen Subject: Re: Shared Generic Instance Code Date: 1997/04/04 Message-ID: #1/1 X-Deja-AN: 230770169 Distribution: world X-NNTP-Posting-Host: marnhull.demon.co.uk References: <5hrkhkINN9ip@snoopy.cis.ohio-state.edu> Organization: Peninsula Products Newsgroups: comp.lang.ada Date: 1997-04-04T00:00:00+00:00 List-Id: My post was prompted by thought that if the generic actual parameters can be determined at compile time then the code for a generic instance can be a straight inline expansion of the body. But if not, then the generated code must contain some mechanism for choice. I thought this constituded code sharing, though I see that the subject is much wider. But my curiosity is aroused. How do compilers (does GNAT) deal with this distinction? -- Bill Keen