help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I find the names of the fields of a struct?


From: Stefan Monnier
Subject: Re: How do I find the names of the fields of a struct?
Date: Tue, 08 Jun 2021 12:21:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>   mys
>     ;; -> #s(mystruct 22 nil "44")

Try `cl-prin1` or `cl-prin1-to-string`.

>   (type-of mys)
>     ;; -> mystruct

You can also try `C-h o mystruct RET` (and look at `cl-describe-type`
for how this is implemented).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]