|
I tried using this code to modify the [] operator: static operator [] ( iRow:int ):float { return parseFloat(m[iRow]); } it did not work but in the unity reference, there were some operator overloads defined in the same way.
(comments are locked)
|
|
There isn't a [] operator. In c# you can created indexers (the things arrays and hashtables use) like this:
but i don't think js has the relevant syntax to express it
(comments are locked)
|
