diff options
| author | gingerBill <bill@gingerbill.org> | 2021-09-03 11:02:31 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-09-03 11:02:31 +0100 |
| commit | 7ed4f01d02b311bb2d2854ae5556fbea70af6dda (patch) | |
| tree | 769a357856ccbecdcb81633c33fee4e0f957d617 | |
| parent | e2f035d6eea1a6b6624213cf653fc31bd64f0b9e (diff) | |
Add `reflect.equal` and `reflect.not_equal`
| -rw-r--r-- | core/reflect/reflect.odin | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/reflect/reflect.odin b/core/reflect/reflect.odin index a7aec0d19..881f32b6e 100644 --- a/core/reflect/reflect.odin +++ b/core/reflect/reflect.odin @@ -1276,7 +1276,9 @@ as_raw_data :: proc(a: any) -> (value: rawptr, valid: bool) { return; } -/* +eq :: equal; +ne :: not_equal; + not_equal :: proc(a, b: any) -> bool { return !equal(a, b); } @@ -1353,4 +1355,3 @@ equal :: proc(a, b: any) -> bool { return true; } -*/ |