On May 17, 2006, at 9:37 AM, Dan Stenning wrote:


What I'm thinking of is something like:

Operator_ArrayIndex( index as integer ) As myobject
Operator_ArrayIndex(index as integer, rhs As myObject )

So we could write

Dim arr as MyArrayClass()
Dim bar as myobject

arr.append new myobject
arr.append new myobject
arr.append new myobject

All of this above is already possible with NO new operator required.
The methods I showed you earlier work and you can do this already.

For each bar in arr
 bar.foo()
next

This is the ONLY piece that does not work.
But adding an operator is not required.
An iterator would work here. At least it seem to in Java, C++, etc without modifying those languages.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to