comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: what means the " ' " in use with a record type?
Date: Fri, 23 Aug 2002 20:16:13 GMT
Date: 2002-08-23T20:16:13+00:00	[thread overview]
Message-ID: <hKw99.5354$jD1.434739270@newssvr13.news.prodigy.com> (raw)
In-Reply-To: c923f575.0208231040.301add2@posting.google.com

> 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.



       reply	other threads:[~2002-08-23 20:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <c923f575.0208231040.301add2@posting.google.com>
2002-08-23 20:16 ` tmoran [this message]
2002-08-24 13:19   ` what means the " ' " in use with a record type? Robert Dewar
2002-08-25  6:15     ` tmoran
2002-08-25 15:42       ` Ben Brosgol
2002-08-25 23:29         ` Steven Deller
2002-08-26  1:20           ` tmoran
2002-08-26 20:43             ` Robert Dewar
2002-08-26 20:41       ` Robert Dewar
2002-08-26 21:37         ` tmoran
2002-08-25  5:00 ` R. Tim Coslet
replies disabled

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