[sv-bc] 5.6, 22.6: Dynamic Arrays questions

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Tue Nov 08 2005 - 06:19:28 PST
  

Does the following belong to sv-ec?

 

In a dynamic array, is it legal to give new[0] ?

Does it do the obvious, emptying the array, like delete()?

 

Second, regarding size() and $size:

5.6.2 says that size() "returns the current size of a dynamic array, or
zero if the array has not been created."

and "The size dynamic array method is equivalent to $size(addr,1) array
query system function (see 22.6)."

 

22.6 says that "When used on a dynamic array ..., these functions return
information about the current state of the array. If the dimension is
currently empty, these functions shall return a 'x."

 

So, on an empty dynamic array, what do size() and $size return?

 

Thanks,

Shalom

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852 

 



image001.gif
Received on Tue Nov 8 06:19:37 2005

This archive was generated by hypermail 2.1.8 : Tue Nov 08 2005 - 06:20:05 PST