puts() quirk
- Posted by "Bruce M. Axtens" <bruce_axtens at sil.org> Apr 23, 2003
- 570 views
Dear List
I don't know if anyone's noticed this before ... maybe it's old news.
sequence a
sequence b
a = { 'c', 'a', 't', 0, 0, 0 }
b = "dog"
puts( 1, a & "\n" )
puts( 1, b )
This outputs
catdog
Rather than
cat
dog
As one might expect.
Indeed, if one combines the puts() into one, e.g.
puts( 1, a & "\n" & b )
then the program outputs
cat
Weird.
Bruce.
(Windows 2000 Advanced Server, Euphoria 2.4 beta, DOS32 script in a
CMD.EXE window)

