in reply to (tye)Re2: Reference as the only Object element
in thread Reference as the only Object element

Basically, he wants some class that acts as an array. That works just fine.

I'd make one reccomendation - be positive that addItem() is always going to do an unshift. It's more intuitive to add to the end vs. the beginning of a list.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re: (tye)Re2: Reference as the only Object element