Tim,

I was not convinced that proves it. Internally, it could just keep track of the 
largest value and return null for any values in between that are not assigned.

But I thought of a test that likely proves you are right:

C_COLLECTION($test)
$test:=New Collection
$test[MAXLONG-5]:=5

You'll be waiting for a while...

John DeSoi, Ph.D.



> On Mar 21, 2018, at 7:41 PM, Timothy Penner <[email protected]> wrote:
> 
> Actually, it does create 247 empty elements (null to be exact).
> 
> Try it and look in the debugger.

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to