rutils icon indicating copy to clipboard operation
rutils copied to clipboard

Transfer setf definitions if any in abbr.

Open jcguu95 opened this issue 1 year ago • 0 comments

This commit supports the macro abbr to transfer setf definitions for the function long to the abbreviated function short.

Provide two tests as well. Here's how you test:

(should-test:test :package 'rutils.test)

It resolves the issue(s): https://github.com/vseloved/rutils/issues/63 .

;;; Example usage
(setf (rutil:lt (rutil:pair 0 0)) 1) ; => 1
(setf (rutil:rt (rutil:pair 0 0)) 1) ; => 1

Tested with

(should-test:test :package (find-package :rutils.test))
(should-test:test :package (find-package :rtl)) ; 5 failures, but those are presented in the master  branch already.

jcguu95 avatar Apr 29 '24 14:04 jcguu95