as3-crypto icon indicating copy to clipboard operation
as3-crypto copied to clipboard

while(y.t<ys) y.(y.t++, 0);

Open makc opened this issue 12 years ago • 6 comments

This is really crazy code that breaks many parsers. Do you think you could change it to original?

while(y.t < ys) y[y.t++] = 0;

makc avatar Jun 13 '13 12:06 makc

Thanks! Will hopefully get around to this soon as it's on the upstream task list too: #56.

I'm still unsure how that piece of code actually compiles properly.

timkurvers avatar Jun 18 '13 07:06 timkurvers

Whenever I try to do this in my own code, it compiles fine but throws RTE:

TypeError: Error #1123: Filter operator not supported on type Foo.

The compiler does not bother to check if e4x is applicable, but vm does. So I guess the only reasonable explanation for this is that BigInteger's divRemTo() method is never actually used.

makc avatar Jun 18 '13 08:06 makc

...or while condition is always false.

makc avatar Jun 18 '13 08:06 makc

I want to know which style of writing is right. " while(y.t < ys) y[y.t++] = 0" is right or wrong. I hope you will reply as soon as.

wudixiaozi135 avatar May 18 '16 06:05 wudixiaozi135

It should be while(y.t<ys) y.a[y.t++] = 0;

hypergeome avatar Dec 29 '16 06:12 hypergeome

many thanks

wudixiaozi135 avatar Dec 29 '16 06:12 wudixiaozi135