Page 2 of 2

Posted: Sun Jun 22, 2003 10:49 am
by jv_map
In general it is a bad idea to use gotos ;)

http://www.acm.org/classics/oct95/

Posted: Sun Jun 22, 2003 12:01 pm
by mohaa_rox
yup, i used gotos sometimes and the whole damn script just crashes! i use thread instead. the same right?

Posted: Sun Jun 22, 2003 12:23 pm
by nuggets
pretty much, except for the reason i stated before

also the benefit of thread you can take other information with them i.e

$car_bonnet1 thread check_me 5 10

check me local.silly_number1 local.silly_number 2:
if (local.silly_number1 << local.silly_number2)
{iprintlnbold local.silly_number1 " is smaller " than local.silly_number2}
else
{iprintlnbold local.silly_number1 " is bigger " than local.silly_number2}
end

where it stores the 1st and 2nd number (5 and 10) when it checks the thread

yes i know that it may be the same number :P