View Single Post
Old 04-25-2009, 04:03 PM   #7 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Y.P.Y View Post
But i thinking this is a bug...
It's not.

In programming, before you go yelling "bug!" you should know how it happened, why its a bug, and how it could be fixed. Otherwise you do not understand the issue and are therefore not qualified to assess if it is indeed a bug. At this point you simply do not understand the nature of the code, which may be because it one of the messiest pieces of code I've seen in a very long time. I can hardly read that.....

The reason you are getting these weird characters is because you are making bad conversions to a string. Since all data boils down to 0's and 1's, all data can be applied to all other data; you just won't get anything nice looking. I see you outputting the following:
1. Strings
2. Something typecasted to a string
3. Integers
4. Booleans (which are integers)
5. Strings with integer operations applied to them

With all that meshed into one output statement, I find it amazing you are surprised at the unreadable output.
__________________

Village Idiot is offline  
Reply With Quote