Add $T: typeid/[]$E; Deprecate T: type/[]$E
`type` as a keyword will soon be removed in favour of polymorphic names (identifiers) in procedures
This commit is contained in:
1 parent
220485a2d2
commit
11f5236434
6 files changed
+101
-27
No files matched your search
+1
-1
@@ -192,7 +192,7 @@ norm0 :: proc(v: $T/[$N]$E) -> T {
|
||||
|
||||
|
||||
|
||||
identity :: proc(T: type/[$N][N]$E) -> T {
|
||||
identity :: proc($T: typeid/[$N][N]$E) -> T {
|
||||
m: T;
|
||||
for i in 0..N-1 do m[i][i] = E(1);
|
||||
return m;
|
||||
|
||||
Reference in new issue
Block a user