Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: REBOL Enhancement Proposals (REPs)

From: lmecir:mbox:vol:cz at: 27-Sep-2001 19:51

> > > > BTW, is your Perl implementation correct? > > > > > ... That is, the equivalent of the Perl > > > > > > for (my $i = 1; $i < $#a; ++$i) { > > > $a[$i] = ($a[$i-1] + $a[$i] + $a[$i+1])/3; > > > } > > > > > Yes, AFAICT. It even agrees with uSoft XL! ;-) > > What looked suspicious to you? > > -jn- >
I don't know Perl enough, but the difference between: ;$i < $#a; for Perl and the C ; i < sizeof(a)/sizeof(double) - 2; looked suspicious to me.