Closed mmontone closed 6 months ago
You might want to add a documentation comment saying that doing this is UB by the language specification, but all most-used contemporary implementations (SBCL, CCL, ECL, Clasp, CLISP, ABCL, LW, ACL) define slot-value
on structure-object
s in a meaningful and expected way.
Yes, this is not ready. I should add tests and test on all implementations. Will do that soon.
Your patch should Just Work™ as-is without much trouble, but yes, adding some basic tests that verify this behavior would be useful for cross-implementation support.
Right
El sáb., 29 oct. 2022 17:35, phoe @.***> escribió:
Your patch should Just Work™ as-is without much trouble, but yes, adding some basic tests that verify this behavior would be useful for cross-implementation support.
— Reply to this email directly, view it on GitHub https://github.com/AccelerationNet/access/pull/20#issuecomment-1295966327, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADKPDU2ZRR6DWDYPLW4GXTWFWDAJANCNFSM6AAAAAARRP5LXU . You are receiving this because you authored the thread.Message ID: @.***>
Added tests.
They pass for SBCL and ECL, but there's an error in CCL. My ABCL doesn't load lisp-unit2. I'll test again with latest version.
I've fixed the tests for CCL.
My ABCL v1.9.0 (latest released) won't load cl-unicode, that is needed by lisp-unit2, that is needed by access-test. So I'm not being able to run tests from ABCL for now..
Thanks for all the work on this so far and the cross implementation testing. Is it ready to be merged?
Phoe, if you have the ability to test on multiple implementations, and are interested, I could make you a committer / merger on this project. I haven't had much opportunity to program in Common LISP in the past few years.
Thanks for all the work on this so far and the cross implementation testing. Is it ready to be merged?
Tests pass for SBCL, CCL, ECL. Coundnt' test on ABCL because lisp-unit2 doesn't load for me.
I have some doubts of what I did in line 538, but I don't know what to do about it atm.
I've updated do-set-access for structure-objects. Just use (setf slot-value) with actual-slot-name. I think that's correct.
Compiles without warning and tests pass for SBCL, CCL, ECL.
If you decide to merge, feel free of squashing commits.
I think I'm done here :)
sad this is being overlooked.
Phoe, if you have the ability to test on multiple implementations, and are interested, I could make you a committer / merger on this project. I haven't had much opportunity to program in Common LISP in the past few years.
@bobbysmith007 I think I can do that, yes. I think I can do basic testing (via Roswell's ability to download implementations) and merge PRs.
@phoe , thanks for your offer. I have added you as a maintainer, so you should be able to merge this whenever you are ready. If you run into any problems, or if it needs to be merged more readily than that, I can do so, but it feels strange to merge code I cannot currently run locally (I dont currently have a common lisp environment running)
Hello, friendly ping. Thanks to all involved :pray:
Thanks for the reminder - merging this now.
This pull request allows accessing structure objects, that is not possible at the moment.