libera/#clasp - IRC Chatlog
Search
15:52:35
drmeister_
Bike: I posted this on Reddit: https://www.reddit.com/r/RemarkableTablet/comments/1aeedw1/repairing_remarkable_marker_plus/
18:41:22
paulapatience
Is there any way to describe to Clasp how to inspect objects which are instances of C++ classes?
19:42:29
yitzi
If you are talking about functions defined with clbind, then what is there to inspect? There aren't any slots as far as Clasp is concerned. Its all wrapped_pointer.
20:05:20
paulapatience
Maybe it would be cool to allow something similar for C++ classes, e.g., if the user specifies what the members are, when you click on it in the REPL it can show the values of members
20:07:14
paulapatience
Obviously it wouldn't be as interactive as with slots, but it could give you a better idea of the object's state
20:17:28
yitzi
The best that you could do with the current framework is add inspect case https://github.com/clasp-developers/clasp/blob/d23de8b433394ec88daac0c2a7f1fc47d17d10c2/src/lisp/kernel/lsp/describe.lisp#L453
20:18:19
yitzi
wrapped pointers are completely opaque so there isn't really anything to iterate over.
20:20:31
yitzi
I started on an new inspector that can be extended with iteration of additional axes (like slots) for SICL, but it requires pretty printing which SICL doesn't have yet. So it is mostly just a proof-of-concept now.