It seems to work except the case when I tag
MAStringDescription with
#beDetail. In that case it tries to visit a String which is collection and
so each of its characters should be visited but visiting is not implemented
for most of objects including Chars... and I'm affraid the same error will
be raised for some other types of description...
Sounds good so far, you just have to stop the visiting at some point.
In your example when you encounter the MAStringDescription you
probably just want to render the described string instead of
continuing visiting the string and its individual characters. Btw, you
can ask descriptions for a renderable string description like so:
aDescription toString: value
So even if your value is not a string, all descriptions know how to
convert it to one.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch