[plt-scheme] struct-type-info

From: Matt Jadud (mcj4 at kent.ac.uk)
Date: Fri Dec 1 10:58:22 EST 2006

Hi all,

Given a structure instance 'a-foo':

(define-struct foo (a b))
(define a-foo (make-foo 3 5))

Is there any way, given an instance of a foo (a 'make-foo') to get at 
the struct-type-info? Or, do I need to define my own structure using 
make-structure-type and hide that information somewhere?

Given a structure of any type, I'd like to generically walk the fields. 
However, given a structure instance, I'm not clear how I find out what 
its accessor method should be...

I'm confident that I'm missing something simple here, but it continues 
to elude me.


Posted on the users mailing list.