Re: printf -> bad argument list

From: Kish Shen <>
Date: Wed 28 Nov 2001 03:24:31 PM GMT
Message-Id: <>
>> printf("%w", [[1],[2]]).

>Use as many %w as you have in the argument list of printf. Thus, the
>printf("%w,%w", [[1],[2]]).

Or, if the argument you are trying to print is [[1],[2]], then you need
to enclose it in an extra set of square brackets:

printf("%w", [ [[1],[2]] ]).

(In general, you should always surround the items you want to print with
square brackets, even if it is a single item. This avoids the above
confusion of wheather you wanted to print two items, or have a single item
which is a list)


Received on Wed Nov 28 15:24:57 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:12 PM GMT GMT