[fpc-devel]a fpc 1.1 make cycle problem

Jonas Maebe jonas at zeus.rug.ac.be
Wed Jun 19 16:37:40 CEST 2002


On Wed, 19 Jun 2002, Peter Vreman wrote:

> > I think -CR was recently extended by Peter so that it calls "fpc_do_as"
> > for classes in some cases.  Or is that for -Cr?
>
> That is correct -CR also adds runtime checks for class typecasts like
>
> tclass1(class2).field=2
>
> this will with -CR implicitly changed to the following sequence:
>
> (class2 as tclass1).field=2
>
> Maybe there is a problem with that code. It's not that well tested

Why did you remove the compilerproc construct and added a manually coded
pass_2 for tcgasnode? fpc_do_as returns the instance as function result so
that you could use it in the middle of an expression. I don't see the
advantage of or need for a manually coded pass_2. There's a bug in it (it
doesn't save/restore the register variables), but that can't cause the
crashes since they also happen without -Or.


Jonas






More information about the fpc-devel mailing list