- Timestamp:
- Feb 25, 2023, 8:12:47 AM (21 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- b1ad41f
- Parents:
- f2a1cd2
- Location:
- tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/avltree/avl.h
rf2a1cd2 rdd3576b 9 9 // #include <lib.h> 10 10 11 trait Comparable(T) { 11 forall(T) 12 trait Comparable { 12 13 int ?<?(T, T); 13 14 }; -
tests/function-operator.cfa
rf2a1cd2 rdd3576b 10 10 // Created On : Fri Aug 25 15:21:11 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Apr 11 18:27:45 201913 // Update Count : 1 012 // Last Modified On : Sat Feb 25 07:26:10 2023 13 // Update Count : 12 14 14 // 15 15 … … 22 22 23 23 // STL-like Algorithms 24 trait Assignable(T &, U &) { T ?=?(T &, U); }; 25 trait Copyable(T &) { void ?{}(T &, T); }; 26 trait Destructable(T &) { void ^?{}(T &); }; 24 forall(T &, U &) 25 trait Assignable { T ?=?(T &, U); }; 26 forall(T &) 27 trait Copyable { void ?{}(T &, T); }; 28 forall(T &) 29 trait Destructable { void ^?{}(T &); }; 27 30 28 31 trait Iterator(iter & | sized(iter) | Copyable(iter) | Destructable(iter), T) { -
tests/sum.cfa
rf2a1cd2 rdd3576b 11 11 // Created On : Wed May 27 17:56:53 2015 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Thu Aug 5 21:27:25 202114 // Update Count : 34 613 // Last Modified On : Fri Feb 24 22:52:12 2023 14 // Update Count : 347 15 15 // 16 16 … … 18 18 #include <stdlib.hfa> 19 19 20 trait sumable( T ) { 20 forall( T ) 21 trait sumable { 21 22 void ?{}( T &, zero_t ); // 0 literal constructor 22 23 void ?{}( T &, one_t ); // 1 literal constructor
Note: See TracChangeset
for help on using the changeset viewer.