Changeset 8e4f34e for tests


Ignore:
Timestamp:
Dec 10, 2024, 2:28:31 PM (8 days ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
6e6e372
Parents:
fd0a1799
Message:

Allow builtin ++ from += overloads, and similar, to work on a type witout a parameterless constructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/zero_one.cfa

    rfd0a1799 r8e4f34e  
    3030S ?+=?( S & s, one_t ) { s.[i,j] += 1; return s; } // increment
    3131S ?-=?( S & s, one_t ) { s.[i,j] -= 1; return s; }
    32 S ++?( S & s ) { s += 1; return s; }
    3332int ?!=?( S s, zero_t ) { return s.i != 0 && s.j != 0; } // comparison
    3433void testInitAssignQueryIncrement() {
Note: See TracChangeset for help on using the changeset viewer.