timkurvers / as3-crypto

Fork of Henri Torgemane's excellent as3 cryptography library
http://code.google.com/p/as3crypto
Other
93 stars 46 forks source link

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

Open makc opened 11 years ago

makc commented 11 years ago

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;
timkurvers commented 11 years ago

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.

makc commented 11 years ago

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 commented 11 years ago

...or while condition is always false.

wudixiaozi135 commented 8 years ago

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.

hypergeome commented 7 years ago

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

wudixiaozi135 commented 7 years ago

many thanks