Page 3 of 3
Re: Val Does Not Work on Zero
Posted: Sun Apr 09, 2006 7:54 am
by Dare2
PB wrote:@Dare2: Being frustrated doesn't mean I need any help, mate. That's a direct personal insult on me which I find judgemental and offensive in the extreme. It's time like this that make me really understand why Danilo quit the forums.
Yes, it was directly aimed at you.

First ever post where I have done this and it felt quite good.

It also felt good to know I could do this without you spitting the dummy and locking the thread (as you have done to me and to others, even when you were not the recipient of the preceding posts).
Point being, if you want people to be polite to you, be polite to them. If you get personal and act like a pork chop, accept that others can as well - and if you don't like it when directed at you (as I just demonstrated) then consider that others might not like it when you direct it at them.
Re: Val Does Not Work on Zero
Posted: Sun Apr 09, 2006 8:04 am
by PB
Well, I didn't get personal with Alex at all. I just got frustrated with trying to
explain the situation. If you look at my posts, I went to great calm lengths to
explain Val, including with detailed code snippets and references to the docs.
It was only after that that I said "RTFM" and asked someone else to help me
get my point across. Never did I say Alex needed psychiatric help or anything
personal like you did to me. Besides, getting frustrated does not mean one
needs help -- it just means you're normal. You've never raised your voice to
anyone in your life? THAT'S not normal.

But it's over now; I've apologised
to Alex via PM (he can verify) and we'll both just move on.
(Re: Locking the thread -- I haven't been a mod for some time now, which
I guess you hadn't noticed? We're all on equal footing here, thus was this
entire topic).
Re: Val Does Not Work on Zero
Posted: Sun Apr 09, 2006 8:47 am
by Dare2
PB wrote:(Re: Locking the thread -- I haven't been a mod for some time now, which I guess you hadn't noticed? We're all on equal footing here, thus was this entire topic).
Had noticed, hence the reference to it being "safe" to take a shot a you. Which (to my discredit) I still feel like doing. So I'd better bow out now.
Re: Val Does Not Work on Zero
Posted: Sun Apr 09, 2006 8:58 am
by PB
> Which (to my discredit) I still feel like doing
Doesn't matter.

Re: Val Does Not Work on Zero
Posted: Sun Apr 09, 2006 9:03 am
by Alex
I'm verifying. PB and I are fine.
Alex
Posted: Sun Apr 09, 2006 10:31 am
by Kale
I've woken up now and i want to clarify one point.
This code does NOT return false. It returns the numeric value of the literal string passed. Which in Purebasic just so happens to be what it uses as a false value.
Doing something like this:
Is entriely valid IMO because you could use 'Val()' in this way to test a that a string contains a number that isn't '0'.
Posted: Sun Apr 09, 2006 2:57 pm
by Dare2
lol.
Some of the posts on this thread have been sanitised.
Posted: Sun Apr 09, 2006 3:11 pm
by Berikco
Damn, im to late

Posted: Sun Apr 09, 2006 3:14 pm
by Dare2
Posted: Sun Apr 09, 2006 5:22 pm
by Alex
Kale wrote:I've woken up now and i want to clarify one point. :)
This code does NOT return false. It returns the numeric value of the literal string passed. Which in Purebasic just so happens to be what it uses as a false value.
Pardon me for beating a dead horse, but doesn't this mean that any keyword operation that returns the number 0, even if completely accurate mathematically, also returns false?
Alex
Posted: Sun Apr 09, 2006 5:30 pm
by Kale
Alex wrote:Pardon me for beating a dead horse, but doesn't this mean that any keyword operation that returns the number 0, even if completely accurate mathematically, also returns false?
Yes, because Purebasic uses the number '0' as a false value due to the lack of any real boolean data type. Conversely Purebasic uses the value '1' for true. But in the case of 'If' statements any other value than '0' is true.
Posted: Sun Apr 09, 2006 9:23 pm
by netmaestro
crap, all the fun stuff is cleaned up

Posted: Sun Apr 09, 2006 9:59 pm
by PB
> Some of the posts on this thread have been sanitised

Re: Val Does Not Work on Zero
Posted: Wed Dec 28, 2011 10:32 am
by blueznl
Frankly, most people have forgotten the issue since then

Re: Val Does Not Work on Zero
Posted: Wed Dec 28, 2011 6:22 pm
by Zach
Holy 5 years ago, Batman
