mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Generics with <>. Deprecation of {} generics.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user