Then you get into issues like a packed struct also creates a packed array of the same name and then 'size' becomes a keyword. ________________________________ From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On Behalf Of Brad Pierce Sent: Wednesday, May 31, 2006 9:01 AM To: sv-bc@server.eda.org; sv-ec@server.eda.org Subject: Re: [sv-bc] size() array methods for packed, unpacked and associative arrays We could define A.size() in terms of $size(A) and be done with it for all array kinds. >I would at least like to see size() uniformly applied to all unpacked arrays and remove num() for associative arrays. >Allowing a method call packed arrays would be an enhancement at a lower priority. -- Brad ________________________________ From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On Behalf Of Brad Pierce Sent: Tuesday, May 30, 2006 11:09 PM To: sv-bc@server.eda.org; sv-ec@server.eda.org Subject: [sv-bc] size() array methods for packed, unpacked and associative arrays 5.6.2 and 5.14.2.1 seem to suggest that the size() method is only defined for dynamic arrays and queues, and not for packed, unpacked or associative arrays. If so, why is that? For dynamic arrays, the size() method is defined in terms of the $size() system function, which can also be applied to packed, unpacked or associative arrays. -- BradReceived on Wed May 31 09:25:46 2006
This archive was generated by hypermail 2.1.8 : Wed May 31 2006 - 09:25:53 PDT