From: tmoran@acm.org
Subject: Re: what means the " ' " in use with a record type?
Date: Mon, 26 Aug 2002 21:37:18 GMT
Date: 2002-08-26T21:37:18+00:00 [thread overview]
Message-ID: <icxa9.256$B21.27032736@newssvr14.news.prodigy.com> (raw)
In-Reply-To: 5ee5b646.0208261241.49c5d9ce@posting.google.com
> Because you cannot look inside an aggregate to determine its type. See RM
type fruits is (apple, orange, banana);
type colors is (red, orange, yellow);
color : colors;
fruit : fruits;
type color_ptrs is access colors;
x : color_ptrs;
begin
color := orange;
fruit := orange;
x := new color'(red);
So you can't write
x := new red;
because red is an aggregate??
That also doesn't explain why you can't write:
x := new;
but you can write:
x.all := orange;
next prev parent reply other threads:[~2002-08-26 21:37 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 ` what means the " ' " in use with a record type? tmoran
2002-08-24 13:19 ` 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 [this message]
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