[plt-scheme] HTML: how to get structure name?

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Sat Apr 25 17:30:35 EDT 2009

First I would ask what you want to do. Getting a symbol to indicate the 
struct type doesn't looks to be the best solution to be.


(vector-ref (struct->vector a-input) 0)

will give you pretty much what you want, and it is easy to remove the 
`struct:' prefix from a symbol if have to.


Veer wrote:
> Hello,
> Is it possible to get the name of html structures as symbol?
> For example :
> (require html)
> (define a-input (make-input empty))
> >From a-input i need to get symbol  'input .
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme

Posted on the users mailing list.