[fpc-pascal] IInterface type value and the "as" keyword

Marco van de Voort marcov at stack.nl
Sun Dec 11 12:38:21 CET 2011


In our previous episode, Honza said:
> after a long pause I'm trying to revive some code which I didn't touch
> as long as early this year. At that time it compiled OK with trunk FPC
> (I believe version 2.5.1).

Early that year 2.5.1 was trunk yes. That same code is now the future fixes
branch for 2.6, for which a RC1 is already available.

> Now I'm trying to make that code work with
> current stable (AFAICS that's 2.4.4)

Correct, but it is relatively short before the 2.6.0 release, with a first
RC1 already available. Since 2.6.0 might arrive this year still (or in the
first week of the next), I suggest your focus your attention there, and
forget about 2.4.4.

> I suppose something has changed with the FPC interfaces and/or using
> the "as" keyword in the above construct. Of course I searched e.g. the
> "changes" wiki pages 2.4.0->2.4.2->2.4.4(and even ->2.6.0), but I
> failed to find anything related, the same result for the mailing lists
> and general googling attempts. And of course I tried every single
> change to the code I could imagine may work.

I assume it is bugfixed in 2.5+, which never made it back to the 2.4 series.
 
> That said, I'm sure it's my fault to find the info or it's my fault in
> some other way - me being blind to see something obviously wrong with
> the code in the snippet, though I'm sure it used to compile w/o
> problem before.

It doesnt seem to be one of the major differences, so it is not a stupid
question. 

(major ones I mean documented ones like:
http://wiki.freepascal.org/User_Changes_2.6.0#IInterface.QueryInterface.2C_._AddRef_and_._Release_definitions_have_been_changed
)

> Can please someone enlighten me? Thanks in advance, sorry for being dumb ;-)

As said I think it is simply one of those minor bugfix related differences
between the 2.4 and 2.6 (and +) series.



More information about the fpc-pascal mailing list