mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 07:44:09 +02:00
Deprecating IOp* interfaces
This commit is contained in:
parent
74382fcb30
commit
99989d5472
15 changed files with 26 additions and 4 deletions
|
@ -375,7 +375,7 @@ namespace System
|
|||
{
|
||||
}
|
||||
|
||||
[AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias)]
|
||||
[AttributeUsage(.Method | .Constructor | .Class | .Struct | .Alias | .Interface)]
|
||||
public struct ObsoleteAttribute : Attribute
|
||||
{
|
||||
public this(bool isError)
|
||||
|
|
|
@ -8,7 +8,8 @@ namespace System
|
|||
using System.Globalization;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Diagnostics;
|
||||
|
||||
|
||||
#unwarn
|
||||
public struct Double : double, IFloating, ISigned, IFormattable, IHashable, IOpComparable, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable, ICanBeNaN
|
||||
{
|
||||
public const double MinValue = -1.7976931348623157E+308;
|
||||
|
|
|
@ -2,6 +2,7 @@ using System.Globalization;
|
|||
|
||||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct Float : float, IFloating, ISigned, IFormattable, IHashable, IEquatable<float>, IOpComparable, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable, ICanBeNaN
|
||||
{
|
||||
public const float MinValue = (float)-3.40282346638528859e+38;
|
||||
|
|
|
@ -23,51 +23,61 @@ namespace System
|
|||
{
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where bool : operator T == T`", false)]
|
||||
interface IOpEquals
|
||||
{
|
||||
public static bool operator==(Self val1, Self val2);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where bool : operator T == T2`", false)]
|
||||
interface IOpEquals<T>
|
||||
{
|
||||
public static bool operator==(Self val1, T val2);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where int : operator T <=> T`", false)]
|
||||
interface IOpComparable
|
||||
{
|
||||
static int operator<=>(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator T + T`", false)]
|
||||
interface IOpAddable
|
||||
{
|
||||
static Self operator+(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator T - T`", false)]
|
||||
interface IOpSubtractable
|
||||
{
|
||||
static Self operator-(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator T * T`", false)]
|
||||
interface IOpMultiplicable
|
||||
{
|
||||
static Self operator*(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator T / T`", false)]
|
||||
interface IOpDividable
|
||||
{
|
||||
static Self operator/(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator -T`", false)]
|
||||
interface IOpNegatable
|
||||
{
|
||||
static Self operator-(Self value);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator implicit T2`", false)]
|
||||
interface IOpConvertibleTo<T>
|
||||
{
|
||||
static operator T(Self value);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator implicit T2`", false)]
|
||||
interface IOpConvertibleFrom<T>
|
||||
{
|
||||
static operator Self(T value);
|
||||
|
|
|
@ -2,6 +2,7 @@ using System;
|
|||
|
||||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct Int : int, IInteger, IHashable, IFormattable, IOpComparable, IIsNaN, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public enum ParseError
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct Int16 : int16, IInteger, ISigned, IHashable, IFormattable, IOpComparable, IIsNaN, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public const int32 MaxValue = 0x7FFF;
|
||||
|
|
|
@ -2,6 +2,7 @@ using System.Globalization;
|
|||
|
||||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct Int32 : int32, IInteger, ISigned, IHashable, IFormattable, IOpComparable, IIsNaN, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public enum ParseError
|
||||
|
|
|
@ -2,6 +2,7 @@ using System.Globalization;
|
|||
|
||||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct Int64 : int64, IInteger, ISigned, IFormattable, IHashable, IOpComparable, IIsNaN, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public enum ParseError
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct Int8 : int8, IInteger, ISigned, IHashable, IFormattable, IOpComparable, IIsNaN, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public const int32 MaxValue = 0x7F;
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace System
|
|||
}
|
||||
|
||||
[Ordered]
|
||||
class String : IHashable, IFormattable, IPrintable, IOpComparable
|
||||
class String : IHashable, IFormattable, IPrintable
|
||||
{
|
||||
enum CreateFlags
|
||||
{
|
||||
|
@ -2705,7 +2705,7 @@ namespace System
|
|||
}
|
||||
}
|
||||
|
||||
public struct StringView : Span<char8>, IFormattable, IPrintable, IOpEquals<String>, IHashable
|
||||
public struct StringView : Span<char8>, IFormattable, IPrintable, IHashable
|
||||
{
|
||||
public this()
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct UInt : uint, IInteger, IUnsigned, IHashable, IOpComparable, IFormattable, IIsNaN, IOpAddable, IOpSubtractable
|
||||
{
|
||||
public enum ParseError
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct UInt16 : uint16, IInteger, IUnsigned, IHashable, IFormattable, IOpComparable, IIsNaN, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public const uint16 MaxValue = (uint16)0xFFFF;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct UInt32 : uint32, IInteger, IUnsigned, IHashable, IOpComparable, IFormattable, IIsNaN, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public enum ParseError
|
||||
|
|
|
@ -2,6 +2,7 @@ using System.Globalization;
|
|||
|
||||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct UInt64 : uint64, IInteger, IUnsigned, IHashable, IOpComparable, IIsNaN, IFormattable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public const uint64 MaxValue = 0xFFFFFFFFFFFFFFFFUL;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
namespace System
|
||||
{
|
||||
#unwarn
|
||||
struct UInt8 : uint8, IInteger, IUnsigned, IHashable, IFormattable, IOpComparable, IIsNaN, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
|
||||
{
|
||||
public const uint8 MaxValue = (uint8)0xFF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue