Posts: 455
Threads: 29
Joined: Apr 2014
i used kar foreach and now switched to ysi\y_iterate
but y_iterate doesn't work as its suppose to work.
for example i added 33346 items but iteration stops at 14099
Posts: 455
Threads: 29
Joined: Apr 2014
25.08.2018, 15:53
(
Последний раз редактировалось CodeStyle175; 26.08.2018 в 07:33.
)
PHP код:
very simple version of object system
#define max_objects 100000
new Iterator:fObjects<max_objects>;
main(){
new rows=50000;
if(!rows)return print("No objects in db!");
for(new i; i < rows; i++){
Iter_Add(fObjects,i);
}
//here is the bug i loaded 33346 but iter added 14100 rows...
printf("Rows: %d | Iter_Count(fObjects) : %d",rows,Iter_Count(fObjects));
return 1;
}
or much easier test
PHP код:
new Iterator:fTestIter<100000>;
CMD:foreach(pid){
new i;
for(i=0; i < 50000; i++){
Iter_Add(fTestIter,i);
}
fscm(pid,-1,"i: %d | iter_count: %d",i,Iter_Count(fTestIter));
return 1;
}
i: 50000 | iter_count: 28525
Posts: 455
Threads: 29
Joined: Apr 2014
so you completly ignore that your y_iterate doesn't work as it suppose to and you are not willing to even try if that bug exsists and trying to be smartass again?
https://github.com/pawn-lang/YSI-Includes
https://github.com/Zeex/amx_assembly
https://github.com/pawn-lang/compiler/releases
#include <YSI\y_iterate>
everything used in those examples is up to date.
Posts: 716
Threads: 92
Joined: May 2018
@******: "func" is probably referred to a macro such as #define func forward public, so should be a public already forwarded in the macro, so he dont have to type everytime:
forward Test()
public Test()
But just: func test
Posts: 455
Threads: 29
Joined: Apr 2014
so it was just too hard to see your code over there and you just start talking some other things that doesn't even matter.
we don't argue over the examples what i gave you, but the bugs that ysi \ y_iterate produced.
and that isnt awful coding practise cause i don't want to write some rows over and over again.
******"I’ve gone to some quite extensive lengths to ensure that my y_iterate works as it is supposed to (way more than any other libraries released on these forums). " go to hell with your length tests...
Posts: 1,276
Threads: 6
Joined: Aug 2014
Quote:
Originally Posted by CodeStyle175
and that isnt awful coding practise cause i don't want to write some rows over and over again.
|
welcome to programming hope you enjoy your stay