AlexNisnevich / ECMAchine

Lisp-based in-browser toy operating system
http://alex.nisnevich.com/ecmachine/
201 stars 14 forks source link

Strings don't always display a strings #7

Closed davep closed 12 years ago

davep commented 12 years ago

A string, by itself, displays as a string, but when part of a more "complex" display it is displayed as you'd expect a symbol would be displayed.

Eg:

ecmachine:/ guest$ "Foo"
"Foo"
ecmachine:/ guest$ (cons "Foo" "Bar")
(Foo . Bar)
ecmachine:/ guest$ (car (cons "Foo" "Bar" ))
"Foo"
AlexNisnevich commented 12 years ago

Good catch. Try it now.

davep commented 12 years ago

Looks good to me.