@Fred:
Internally With is already handled as a macro, that's why it's not allowed.
and you have no shame!!!
(the worst is that you admit it in the doc (I just saw it)
I had soupsons for a while
on the one hand, it prevents the use of macro but especially in the case of table, it is not optimized
in the following example, I go almost 2x faster by using a pointer
I warn you, if you don't fix this right away, I'll organize a manifestation against the "with" of PB
Code: Select all
Structure ss
v.i
EndStructure
Dim a.ss(0,0,0,0)
*pa.ss
OpenConsole()
n=100000000
t=ElapsedMilliseconds()
With a(0,0,0,0)
For i=0 To n
\v+1
Next
EndWith
PrintN("with : "+Str(ElapsedMilliseconds()-t))
a(0,0,0,0)\v=0
t=ElapsedMilliseconds()
*pa=@a(0,0,0,0)
With *pa
For i=0 To n
\v+1
Next
EndWith
PrintN("pointeur : "+Str(ElapsedMilliseconds()-t))
Input()
CloseConsole()