Conversion Operators¶
Implementation status: Deferred post-v0.2.x — spec not finalized.
@implicitand@explicitdecorators are not yet recognized.
Sharpy currently doesn't support user-provided implicit or explicit conversion operators. They are planned for a future version. .NET numeric types and all (.NET, Sharpy, or user-provided) polymorphic types have the same conversion semantics as they would in C#/.NET.
See Also¶
- Dunder Methods — Overview of special methods
- Type Casting — The
tooperator - Operator Overloading — Custom operators
- Arithmetic Operators — Numeric type promotion