mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Generics with <>. Deprecation of {} generics.
This commit is contained in:
@@ -39,7 +39,7 @@ macro void quicksort_indexed(list, start, end, cmp = EMPTY_MACRO_SLOT, context =
|
||||
$endif
|
||||
}
|
||||
|
||||
module std::sort::cs{Type, KeyFn};
|
||||
module std::sort::cs <Type, KeyFn>;
|
||||
|
||||
alias Counts @private = usz[256];
|
||||
alias Ranges @private = usz[257];
|
||||
|
||||
@@ -17,7 +17,7 @@ macro void insertionsort(list, cmp = EMPTY_MACRO_SLOT, context = EMPTY_MACRO_SLO
|
||||
$endif
|
||||
}
|
||||
|
||||
module std::sort::is{Type, CmpFn, Context};
|
||||
module std::sort::is <Type, CmpFn, Context>;
|
||||
|
||||
alias ElementType = $typeof(((Type){})[0]);
|
||||
const bool IS_SLICE = Type.kindof == SLICE;
|
||||
|
||||
@@ -37,7 +37,7 @@ macro quickselect(list, isz k, cmp = EMPTY_MACRO_SLOT, context = EMPTY_MACRO_SLO
|
||||
$endif
|
||||
}
|
||||
|
||||
module std::sort::qs{Type, CmpFn, Context};
|
||||
module std::sort::qs <Type, CmpFn, Context>;
|
||||
|
||||
alias ElementType = $typeof(((Type){})[0]);
|
||||
const bool IS_SLICE = Type.kindof == SLICE;
|
||||
|
||||
Reference in New Issue
Block a user