mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Deprecate @compact use for comparison. Old behaviour is enabled using --use-old-compact-eq.
- Switch available for types implementing `@operator(==)`. - `Type.is_eq` is now true for types with `==` overload. - Functions being tested for overload are now always checked before test. - Compile time indexing at compile time in a $typeof was no considered compile time.
This commit is contained in:
@@ -3573,6 +3573,7 @@ MEMCMP:
|
||||
case TYPE_UNION:
|
||||
case TYPE_STRUCT:
|
||||
case TYPE_BITSTRUCT:
|
||||
assert(compiler.build.old_compact_eq);
|
||||
if (array_base->decl->attr_compact) goto MEMCMP;
|
||||
break;
|
||||
case TYPE_POISONED:
|
||||
|
||||
Reference in New Issue
Block a user