On Thu, 13 Feb 2003, Maly wrote:

> Anton Tichawa wrote:
> > Convernig the optimization .. try replacing the last line,
> >
> >  FFS.ChDir(SavedPath);
> >
> > with
> >
> >  AFS.ChDir(SavedPath);
> >
> > Because, it might seem to the compiler, that the last instruction is
> > write-only and should be deleted.
>
>
> /me bows deeply in respect :)
>
> i don't know how did You figure it out but i commented the
> Write and applied Your suggestion. and now everything's OK

Nevertheless, there is a bug in the compiler, since it should work
correctly both ways. Jonas, any comments ?

Michael.

_______________________________________________
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to