Skip to content

nightly-20260621

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 21 Jun 20:28
581bf81

Added

  • pb36 OPERATOR overloading: a TYPE may define OPERATOR + / - / * / \ / ^ / = / <> / < / > / <= / >= / MOD / AND / OR / XOR (other AS T) AS RetType ... END OPERATOR, with THIS the left operand and RESULT the result; it lifts to a member Type.op_(THIS, other). A binary expression a b whose left operand is that TYPE resolves to the overload at compile time (no dispatch) - a scalar-returning operator (e.g. = overriding the built-in UDT compare) works in any expression, a TYPE-returning operator (e.g. +) uses struct return so c = a + b writes straight into c. New LanguageFeature.OperatorOverloading (pb36); the OPERATOR member lifts through the existing TYPE-member + struct-return machinery (4e70ce6)

Changed

  • docs: OPERATOR overloading documented in README, DIALECTS.md and marked done in the wishlist (581bf81)