[PATCH] object-string should return obj immediately while obj is a string

2012-07-03 Thread Nala Ginrut
hi guys! I realized that our object-string will do some unnecessary works for a string object. --code-- (object-string \n) == \\n ---end-- It's illogical! I get several errors when I'm reading xml files. It generates too many \\ that I must delete

Re: [PATCH] object-string should return obj immediately while obj is a string

2012-07-03 Thread Krister Svanlund
Shouldn't the function return a string representing the object.rather than the object itself, even for a string. It should be up to your application to handle if it's a string imho. On Jul 3, 2012 2:42 PM, Nala Ginrut nalagin...@gmail.com wrote: hi guys! I realized that our object-string will

Re: [PATCH] object-string should return obj immediately while obj is a string

2012-07-03 Thread dsmich
Krister Svanlund adsumm...@gmail.com wrote: Shouldn't the function return a string representing the object.rather than the object itself, even for a string. It should be up to your application to handle if it's a string imho. On Jul 3, 2012 2:42 PM, Nala Ginrut nalagin...@gmail.com

Re: [PATCH] object-string should return obj immediately while obj is a string

2012-07-03 Thread Nala Ginrut
@Krister I thought it should be a generic requirement. And dsmich's answer proved it. It should be the duty of this API but the user choose the output policy. @dsmich I confess I didn't read the manual carefully. Thanks for reminding. On Wed, Jul 4, 2012 at 3:34 AM, dsm...@roadrunner.com wrote: