[fpc-devel] which constant expression?

Mario R. Carro mcarro at gmx.net
Mon May 28 15:00:22 CEST 2007


On Sunday 27 May 2007, Jonas Maebe wrote:
> On 26 May 2007, at 23:40, Mario R. Carro wrote:
> > Hi. Why does this fail to compile with FPC 2.3.1? (from ZeosLib):
> >
> > procedure TZExpression.SetTokenizer(Value: IZTokenizer);
> > var
> >   Parser: TZExpressionParser;
> > begin
> >   FTokenizer := Value;
> >   TZExpressionParser(FParser).Tokenizer := Value; // <-- This line
> > fails
> > end;
>
> Fixed.
>

Great! But look at the attached test: The compilation of the 
line "ArrayInts := nil" fails with the same error. Rewriting it 
as "FArrayInts := nil" lets the compiler accept it. I'm using r7494.

>
> Jonas

Thanks,
Mario

> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pas
Type: text/x-pascal
Size: 332 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20070528/ab2de09f/attachment.pas>


More information about the fpc-devel mailing list