Register    Login    Forum    Search    FAQ

Board index » Everything




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: what is true(23)
 Post Posted: June 17th, 2017, 11:15 am 
 

Joined: June 17th, 2017, 11:10 am
Posts: 3
hey i am getting a bool output by a function i am calling, as a default true even when it does not satisfy the condition, and the output is in the form of true(23), or true(30)
the debugger is showing it in this form,
So can you tell me what does it mean and why i am getting this


Top 
 Profile  
Reply with quote  
 Post subject: Re: what is true(23)
 Post Posted: June 17th, 2017, 4:01 pm 
Site Admin
User avatar

Joined: December 31st, 2011, 4:53 pm
Posts: 3314
Location: Japan
Bro, I have no idea what you mean. :D

Maybe post some code or a screenshot, we'll see what you got.

_________________
Chili


Top 
 Profile  
Reply with quote  
 Post subject: Re: what is true(23)
 Post Posted: June 17th, 2017, 4:08 pm 
User avatar

Joined: February 14th, 2017, 7:32 pm
Posts: 168
Your function is returning true(30) or true(23, while it only returns bools? Yes, just like Chili said, some code would be useful to figure this out. Is it an error message or actually what it is returning?


Top 
 Profile  
Reply with quote  
 Post subject: Re: what is true(23)
 Post Posted: June 18th, 2017, 9:25 am 
 

Joined: February 28th, 2013, 3:23 am
Posts: 2670
Location: Oklahoma, United States
My guess is he has some if statements returning true, and no return false after all the if statements. In other words, the function is returning and there is garbage being returned.

_________________
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com


Top 
 Profile  
Reply with quote  
 Post subject: Re: what is true(23)
 Post Posted: June 18th, 2017, 9:26 pm 
 

Joined: June 17th, 2017, 11:10 am
Posts: 3
Actually chili, since my code was having some troubles i just change all those parts which were having troubles,
but let me tell you this output true(23) was only shown by debugger in autos window.
thats why i just thought i should just post it in forum and ask you guys and this was showing it even when the condition should return it false, i thought may be it was returning some kind of garbage value,since i am a beginner I don't know clearly
by the way hi Chili and hi to all you guys i just joined the forum yesterday and this is really useful.


Top 
 Profile  
Reply with quote  
 Post subject: Re: what is true(23)
 Post Posted: June 18th, 2017, 9:28 pm 
 

Joined: June 17th, 2017, 11:10 am
Posts: 3
i would definitely post the code from next time


Top 
 Profile  
Reply with quote  
 Post subject: Re: what is true(23)
 Post Posted: June 19th, 2017, 12:52 am 
 

Joined: April 19th, 2017, 12:49 pm
Posts: 33
Location: Germany
As a beginner it can be hard and confusing to make the first steps especially finding the right words to describe the issue for help - for me it was at least. So in case of doubt it wont do any harm to show the code you ve a problem with to find a solution.


Top 
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 7 posts ] 

Board index » Everything


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: