From d1caae1ac6f393d0bc8cbcf62804dbac0033d133 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 23 Dec 2021 07:59:18 -0800 Subject: new feature: :mass-delegate struct clause macro. With :mass-delegate, it is possible to generate delegation methods in bulk. All of the methods of a struct type can be mirrored by delegates in another struct type just by writing a single :mass-delegate clause. * stdlib/struct.tlk (:mass-delegate): New struct clause macro. * tests/012/oop.tl: New tests. * txr.1: Documented. * stdlib/doc-syms.tl: Updated. --- stdlib/doc-syms.tl | 1 + 1 file changed, 1 insertion(+) (limited to 'stdlib/doc-syms.tl') diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl index 8b263b4c..bb51d785 100644 --- a/stdlib/doc-syms.tl +++ b/stdlib/doc-syms.tl @@ -78,6 +78,7 @@ ("/=" "N-003BE40C") (":delegate" "N-037F664C") (":key" "N-01697547") + (":mass-delegate" "N-000BBDEA") (":match" "N-03B92C0D") ("<" "D-0057") ("