bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #49537] 'format' on String[] (supported?) prints only fi


From: Sudarshan S Chawathe
Subject: [Bug-kawa] [bug #49537] 'format' on String[] (supported?) prints only first
Date: Sat, 5 Nov 2016 13:31:39 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36

Follow-up Comment #2, bug #49537 (project kawa):

A quick additional observation which may be relevant:  If the first argument
to format is changed from #t to #f, the result changes to the expected:

#|kawa:1|# (format #f "~s~%" (String[] "s2" "s3" "s5"))
["s2" "s3" "s5"]
#|kawa:2|# (format #t "~s~%" (String[] "s2" "s3" "s5"))
"s2"
#|kawa:3|#


Separately from the above, a question (out of curiosity) regarding the
splicing aspect you noted earlier: Is it true that the behavior is caused by
the array getting spliced in (to maintain the deprecated usage) when it
shouldn't be (based on viewing it as a single Scheme object)?  

I ask because the above (and my earlier) examples are different from the ones
in the docs in that they assume that the array will *not* be spliced.  Which
then makes me wonder how the example with the int[] works at all.  (I peeped
into the gnu/kawa/format/* code quickly but didn't look very carefully.)

Sorry for the rambling.  My main purpose is to include the earlier data point
on #t v. #f in format. 




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49537>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]