mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Remove '__eq'
This commit is contained in:
parent
49455dfa09
commit
9c492923db
1 changed files with 1 additions and 2 deletions
|
@ -111,7 +111,6 @@ Unless otherwise specified, if a read or write operation would cause an access o
|
||||||
|
|
||||||
`buffer` also has a metatable, inside this metatable:
|
`buffer` also has a metatable, inside this metatable:
|
||||||
* '__type' is defined to return 'buffer'. `type()` will return 'userdata'
|
* '__type' is defined to return 'buffer'. `type()` will return 'userdata'
|
||||||
* '__eq' is defined to compare buffers, by comparing sizes first, followed by content comparison
|
|
||||||
* metatable is locked
|
* metatable is locked
|
||||||
|
|
||||||
No other metamethod is defined, naming a few specific onces:
|
No other metamethod is defined, naming a few specific onces:
|
||||||
|
@ -119,7 +118,7 @@ No other metamethod is defined, naming a few specific onces:
|
||||||
* '__index' is not defined, so there is no `b[1] = a` interface to write bytes. Neither can you call library functions as methods like `b:writei16(10, 12)`
|
* '__index' is not defined, so there is no `b[1] = a` interface to write bytes. Neither can you call library functions as methods like `b:writei16(10, 12)`
|
||||||
* '__iter' is not defined
|
* '__iter' is not defined
|
||||||
* '__tostring' is not defined, generic userdata behavior remains, returning 'buffer: 0xpointer'
|
* '__tostring' is not defined, generic userdata behavior remains, returning 'buffer: 0xpointer'
|
||||||
* ordering is not defined
|
* '__eq'/'__lt'/'__le' are not defined
|
||||||
|
|
||||||
## Drawbacks
|
## Drawbacks
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue