[plt-scheme] Symbol Table in v200?
It is actually used only to copy the Commom Lisp keyword concept, so that I did not have to quote
the symbols.
(attribute "Backorderable" char :dom-len 1 :nullable #t )
where :dom-len and :nullable are keywords (rather than 'dom-len or ':dom-len etc)
Alex
> -----Original Message-----
> From: Matthew Flatt [mailto:mflatt at cs.utah.edu]
> Sent: Thursday, August 01, 2002 4:21 PM
> To: Alex Peake
> Cc: plt-scheme at tux.cs.brown.edu
> Subject: Re: [plt-scheme] Symbol Table in v200?
>
>
> > I am trying to get a PLT 103 program to run in PLT 200. I used to use
> > a copied function:
> >
> > (define (make-keyword symbol)
> > (cond ((not (defined? symbol))
> > (global-defined-value symbol symbol)
> > (keyword-name symbol))
> > ((not (or (eq? (global-defined-value symbol) symbol)
> > (eq? symbol ':))) ; MrSpidy compatibility has a ":" macro
> > (error 'make-keyword
> > "symbol ~e is already bound, can't make it a keyword." symbol))
> > ((not (keyword-name? symbol)) (keyword-name symbol))
> > (else #t)))
> >
> > What do you do in PLT 200?
>
> I'm not sure how this `make-keyword' function is used, but there are no
> keywords in v200. The new macro system makes the old distinction
> unnecessary.
>
> Matthew
>
>