From: tmoran@acm.org
Subject: Re: how to declare an array of pointers
Date: Sat, 01 Nov 2003 18:10:46 GMT
Date: 2003-11-01T18:10:46+00:00 [thread overview]
Message-ID: <GGSob.59310$275.144816@attbi_s53> (raw)
In-Reply-To: 92bfc3dd.0311010818.63932bf9@posting.google.com
>my question is:
>is Array_Hash_type an array of pointers
WYSIWYG.
> type Array_Hash_type is array (10..HASH_SIZE) of ptr_array;
So Array_Hash_type is an array of "ptr_array"s. Since
> type ptr_array is
> record
...
a ptr_array is a record, not a pointer. So Array_Hash_type is
an array of records (which may contain pointers, etc).
>if not then how can i define one i need an example
Assuming that "p_node" (which you didn't define in your posting)
is an access type (aka pointer), then
type Array_Hash_type is array (10..HASH_SIZE) of p_node;
would be an array of pointers.
next prev parent reply other threads:[~2003-11-01 18:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-01 16:18 how to declare an array of pointers lolo27
2003-11-01 18:10 ` tmoran [this message]
2003-11-01 22:44 ` lolo27
2003-11-01 23:30 ` Jeffrey Carter
2003-11-02 0:04 ` tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox