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_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to