Problem with symbol interning

Tony Garnock-Jones tonyg at lshift.net
Wed Jun 7 12:02:52 PDT 2006


ASCIIString is a subtype of String; therefore

s@(ASCIIString traits) as: a@(ByteArray traits)

will always be called in preference to

name@(String traits) as: _@(Symbol traits)

even though Symbol is a subtype of ByteArray. Nasty.

Tony



More information about the Slate mailing list