My dodgy programming was once again not working! After a couple of hours debugging I found that the problem was not mine, but a slight 'MINOR' bug in GPC. Take a look the the code below. Function ThisIsABug : Integer; Begin ThisIsABug := 0; Exit; ThisIsABug := 100; End; Begin WriteLn(ThisIsABug); End. Im using GPC 2.0 (alpha 9704?? - Im not sure about the ??, but it might be 20) with DJGPP (2.01). The output is not 0 as expected! It not even 100!!! Looking at the ASM produced, we can see its one of those nasties left behind by C (RETURN). Thank you (EVERYBODY) for creating the greatest development platform in the world!! ________________________ | _) | | e-mail: bernie@icenet.com.au |___)ernhard |_|schirren ptschirrenb@cc.curtin.edu.au www: www.geocities.com/CollegePark/Quad/8070/
participants (1)
-
Bernhard Tschirren