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.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1042f393323e22da X-Google-Attributes: gid103376,public From: "John G. Volan" Subject: Re: Any research putting c above ada? Date: 1997/05/17 Message-ID: <337E5854.1366@sprintmail.com>#1/1 X-Deja-AN: 242748897 References: <208C9C61CA05C32B.65D82DC950AAA33A.D68E7B27EB42E98A@library-proxy.airnews.net> <3372D44E.5F44@sprintmail.com> <337813DF.598C@dynamite.com.au> <337D3AE4.28F7@dynamite.com.au> Organization: Sprint Internet Passport Reply-To: johnvolan@sprintmail.com Newsgroups: comp.lang.ada Date: 1997-05-17T00:00:00+00:00 List-Id: Kevin Cline wrote: > > Alan Brain wrote: > > >Simple really, and a real example. Nary a pointer or access type > >anywhere. > > Someone has to manage that storage. Presumably in this case it is the > run-time library. So the pointers exist in the generated code, even though > hidden from the user. Nope, you're in the weeds here. A mutable record (discriminated record with default initialization on the discriminant(s)) can be implemented by simply providing it with enough space to house the largest possible variant. It might not use all that space all the time, but it won't have to allocate/reallocate anything. Bottom line, if you declare one of these beasts in the ordinary way, your Ada compiler can certainly allocate it on the stack, and pass it back and forth on the stack. ------------------------------------------------------------------------ Internet.Usenet.Put_Signature (Name => "John G. Volan", Home_Email => "johnvolan@sprintmail.com", Slogan => "Ada95: The World's *FIRST* International-Standard OOPL", Disclaimer => "These opinions were never defined, so using them " & "would be erroneous...or is that just nondeterministic now? :-) "); ------------------------------------------------------------------------