Maybe you can work with (namespace-mapped-symbols) and
(namespace-variable-value),
All field accessors are procedures with name starts with "struct-name-", no
duplicates in the entire application.

On Fri, Jul 22, 2016 at 3:59 AM, David Storrs <david.sto...@gmail.com>
wrote:

> So there's no way to query the interface of a struct?
>
>
> On Thursday, July 21, 2016, Jon Zeppieri <zeppi...@gmail.com> wrote:
>
>>
>>
>> On Thu, Jul 21, 2016 at 2:44 PM, David Storrs <david.sto...@gmail.com>
>> wrote:
>>>
>>>
>>>
>>> In a related question, is there a way to introspect a struct to find
>>> out what its fields are?
>>>
>>>
>> If you mean the field values: yes, but only if the struct is transparent
>> or prefab or if you have the proper inspector, which you probably do not.
>> You can generally try struct->vector and see if you get anything useful.
>>
>> If you mean the field names: I don't think so; I don't think they exist
>> at runtime.
>>
>> - Jon
>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to