|
@@ -81,7 +81,7 @@ abstract Vector<T>(VectorData<T>) {
|
|
If `index` is negative or exceeds `this.length`, the result is
|
|
If `index` is negative or exceeds `this.length`, the result is
|
|
unspecified.
|
|
unspecified.
|
|
**/
|
|
**/
|
|
- @:arrayAccess public inline function get(index:Int):T {
|
|
|
|
|
|
+ @:op([]) public inline function get(index:Int):T {
|
|
#if cpp
|
|
#if cpp
|
|
return this.unsafeGet(index);
|
|
return this.unsafeGet(index);
|
|
#elseif python
|
|
#elseif python
|
|
@@ -97,7 +97,7 @@ abstract Vector<T>(VectorData<T>) {
|
|
If `index` is negative or exceeds `this.length`, the result is
|
|
If `index` is negative or exceeds `this.length`, the result is
|
|
unspecified.
|
|
unspecified.
|
|
**/
|
|
**/
|
|
- @:arrayAccess public inline function set(index:Int, val:T):T {
|
|
|
|
|
|
+ @:op([]) public inline function set(index:Int, val:T):T {
|
|
#if cpp
|
|
#if cpp
|
|
return this.unsafeSet(index,val);
|
|
return this.unsafeSet(index,val);
|
|
#elseif python
|
|
#elseif python
|