Re: [patch] Printing of character vectors

Tom Tromey
2010-06-25T21:59:16Z

>>>>> "Ken" == Ken Werner <ken@linux.vnet.ibm.com> writes:

Ken> I noticed that char vectors are printed like char arrays (as
Ken> strings). Here is the output of a sample session:

Ken> Is this intended?

I do not know. The test case was written that way, but that isn't
necessarily indicative of intent.

Is it ever useful?

Ken> The attached patch changes c_val_print to additionally check if the
Ken> type is a vector. Tested on powerpc64-*-linux-gnu and
Ken> i686-*-linux-gnu, no regressions. Any suggestions are welcome.

The patch itself is fine. I think the only question is what behavior we
want.

If you don't hear any objections in the next week, go ahead and check it
in.

Tom