[fpc-pascal] C translation question

2016-10-22 Thread Ryan Joseph
I’m trying to translate a function from C (taken from http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html) and although I think I got it correctly it’s not behaving 100% accurately so I’m not sure if it was my translation or not. The “for” statement is pretty confusing to my

Re: [fpc-pascal] C translation question

2016-10-22 Thread C Western
On 22/10/16 10:06, Ryan Joseph wrote: j := i + 1; might want this at the end of the loop. Colin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] C translation question

2016-10-22 Thread Ryan Joseph
> On Oct 22, 2016, at 4:45 PM, C Western wrote: > >> j := i + 1; > might want this at the end of the loop. Doing that defiantly broke it. I think “j” is being set inside the for() construct and before each pass of the loop. The author explains the for loop even but the fact it requires an ex

Re: [fpc-pascal] C translation question

2016-10-22 Thread José Mejuto
El 22/10/2016 a las 11:59, Ryan Joseph escribió: j := i + 1; might want this at the end of the loop. Doing that defiantly broke it. I think “j” is being set inside the for() construct and before each pass of the loop. The author explains the for loop even but the fact it requires an explanat