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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,59e1f81123faf689 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-23 13:17:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.stealth.net!news.stealth.net!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr13.news.prodigy.com.POSTED!3bae8248!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: what means the " ' " in use with a record type? References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 67.115.105.254 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr13.news.prodigy.com 1030133773 ST000 67.115.105.254 (Fri, 23 Aug 2002 16:16:13 EDT) NNTP-Posting-Date: Fri, 23 Aug 2002 16:16:13 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: TSU[@SVGXZUWSVPXN[O@_WH@YR_B@EXLLBWLOOAFMASJETAANVW[AKWZE\]^XQWIGNE_[EBL@^_\^JOCQ^RSNVLGTFTKHTXHHP[NB\_C@\SD@EP_[KCXX__AGDDEKGFNB\ZOKLRNCY_CGG[RHT_UN@C_BSY\G__IJIX_PLSA[CCFAULEY\FL\VLGANTQQ]FN Date: Fri, 23 Aug 2002 20:16:13 GMT Xref: archiver1.google.com comp.lang.ada:28352 Date: 2002-08-23T20:16:13+00:00 List-Id: > return new node'(value => x, to => l); > what means the apostrophe between node and (value => ......? It means you want to allocate a new object of type "node" and give it an initial value of (x,l). From Cohen's "Ada as a second language": Integer_Pointer := new Integer; leaves Integer_Pointer pointing to a dynamically allocated variable of type Integer with unknown contents. The assignment statement Integer_Pointer := new Integer'(0); leaves Integer_Pointer pointing to a dynamically allocated variable of type Integer containing the value zero.