[fpc-devel] Unwanted finalization

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Oct 13 18:05:43 CEST 2012


On 13 Oct 2012, at 18:01, Yury Sidorov wrote:

> Funny, but I have also encountered the problem in this place yesterday :) But with PVariant(VarResult)^ in my case.
> Yes, the declaration of ITypeInfo.Invoke() should be changed to eliminate unwanted compiler magic with managed types when a nil is passed.
> I'll commit the required changes today or tomorrow.

Can't you add an overloaded version to avoid breaking backward compatibility? Or does this problem occur all the time, so that it's better to break compilation than have people hunt all over the source code to find all possible problem locations?


Jonas


More information about the fpc-devel mailing list