Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Bug on AND ?!?

Author
Message
m0y
9
Years of Service
User Offline
Joined: 4th Aug 2015
Location:
Posted: 4th Aug 2015 01:26
Hi,
Look at this test program:



You will have an error because, when col-i will be negative, mat[col-i,2] will be out of bounds.
Why col-i>=0 and .... not protect by this? it seems that when the first operand of AND is evaluated, the second is evaluated also if the first is false.

Thanks!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 4th Aug 2015 09:32
i think before the and, each part is translated into yes/no
and the array can not because neg offset.

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
m0y
9
Years of Service
User Offline
Joined: 4th Aug 2015
Location:
Posted: 4th Aug 2015 10:18 Edited at: 4th Aug 2015 11:57
I think the same and I think it is an error. At the first false condition the AND must exit with false. Is this the correct place to report a bug?

Thanks!!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 5th Aug 2015 09:34
i mean before the and come into play the conditions already translated into a yes/no.
think you can ask paul here in this "AGK Version 2.0.14 and 2.0.14b" thread.

AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 5th Aug 2015 10:49
It's not really a bug though is it? It's just the way AppGameKit does it. Just work around it.



V2 T1 (Mostly)
Phone Tap!
Uzmadesign
m0y
9
Years of Service
User Offline
Joined: 4th Aug 2015
Location:
Posted: 5th Aug 2015 11:05
Hi,
I already did this work around using a exit command. Now I try the "AGK Version 2.0.14 and 2.0.14b" thread.

Thank you CJB and Markus!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 5th Aug 2015 13:48
or this workaround


AGK (Steam) V2 Beta .. : Windows 10 Pro, 8.1 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)

Login to post a reply

Server time is: 2024-11-25 19:29:40
Your offset time is: 2024-11-25 19:29:40