Standard Forth versus Python: a case study

Andrew Haley andrew29 at littlepinkcloud.invalid
Thu Oct 12 13:41:37 CEST 2006


In comp.lang.forth Paul Rubin <http://phr.cx@nospam.invalid> wrote:
> "idknow at gmail.com" <idknow at gmail.com> writes:
>> fun median {
>>  var x = 0.
>>   while( *p++) {
>>     if( (*p) > x) x = *p.
>>   }
>>   return x.
>> }

> I count two variables, p and x.

Isn't this the maximum?

Andrew.



More information about the Python-list mailing list