From: Robert Dober Date: 2006-08-20T17:53:32+09:00 Subject: Re: Bug in sprintf? ------=_Part_25160_15242935.1156064010774 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 8/20/06, Hal Fulton wrote: > > Robert Dober wrote: > >> > > Hal > > all you are saying is true BUT > > I do not think we should blame C for something which really is not nice. > > I know not many share my opinion but the brave speaks out nevertheless > ;) > > > > IMHO the interpreter should raise an expression when a String is passed > to > > %d (as you asked OP rightfully not to do so). > > Early Failure, please, *early*. > > I see your point. Truthfully, I think automatic conversion of a > string in this case is probably a bad idea. And that is a Ruby > issue, not a C one. > > > BTW who is talking about sprintf I am talking about "%" a very rubish > > construct. > > But format % array behaves the same as sprintf(format,*array) Yup, I failed to be clear about this sorry for wasting Austin's and your time. I should have said even more so as we have the % operator which looking very rubish still has these C caveats. Anyway I am more than happy that you share my POV ;-) Cheers Robert The specifiers are the same (and the same as C, perhaps with a few > minor differences). > > > Hal > > ------=_Part_25160_15242935.1156064010774--