[fpc-pascal] Re: Forward declarations

leledumbo leledumbo_cool at yahoo.co.id
Fri Dec 23 13:31:43 CET 2011


Back to high school time, I use it for turn based battle system for a game. I
have two mutually (tail-)recursive procedures where one is the player
movement decision (full with prompts) while the other is the enemy's (some
AI calculation takes the decision). The battle could start ambushed (enemy
first) or preemptive strike (player first). Because of this, the first
procedure to call could be either of the two, and because both are mutually
recursive, one needs to be declared forward.

--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Forward-declarations-tp5095571p5097085.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list