Generics with <>. Deprecation of {} generics.

This commit is contained in:
Christoffer Lerno
2026-01-18 00:33:43 +01:00
parent d3ebd4a130
commit c3b2694834
93 changed files with 179 additions and 197 deletions

View File

@@ -16,7 +16,7 @@ alias I_F @builtin = complex::IMAGINARY { float };
@require Real.kindof == FLOAT : "A complex number must use a floating type"
*>
module std::math::complex {Real};
module std::math::complex <Real>;
import std::io;
union ComplexNumber (Printable)

View File

@@ -28,7 +28,7 @@ alias MATRIX4F_IDENTITY @builtin = matrix::IDENTITY4 {float};
@require Real.kindof == FLOAT : "A matrix must use a floating type"
*>
module std::math::matrix {Real};
module std::math::matrix <Real>;
import std::math::vector;
struct Matrix2x2

View File

@@ -13,7 +13,7 @@ alias QUATERNIONF_IDENTITY @builtin = quaternion::IDENTITY {float};
@require Real.kindof == FLOAT : "A quaternion must use a floating type"
*>
module std::math::quaternion {Real};
module std::math::quaternion <Real>;
import std::math::vector;
union QuaternionNumber
{